Post topics, source code that relate to the Arduino Platform

User avatar
By gdsports
#62471 You will have to look around for a similar project. Then learn from it and adapt it to your needs. For example, this project shows the server half with DHT and web interface. Get something like this working first. The DHT sensor is connected to the ESP. There is no need for an Arduino Uno.

https://learn.adafruit.com/esp8266-temp ... r/overview

Unfortunately, Adafruit's tutorial is a little rusty. Ignore their instructions for setting up the Arduino IDE. Use there latest instructions from here.

https://github.com/esp8266/arduino#ardu ... -wifi-chip
User avatar
By Lucas neill
#62549
gdsports wrote:You will have to look around for a similar project. Then learn from it and adapt it to your needs. For example, this project shows the server half with DHT and web interface. Get something like this working first. The DHT sensor is connected to the ESP. There is no need for an Arduino Uno.

https://learn.adafruit.com/esp8266-temp ... r/overview

Unfortunately, Adafruit's tutorial is a little rusty. Ignore their instructions for setting up the Arduino IDE. Use there latest instructions from here.

https://github.com/esp8266/arduino#ardu ... -wifi-chip

I successfully made this adafruit project but now how can I make my other esp read this temperature info and turn the relay on connected to it?
User avatar
By gdsports
#62579
I successfully made this adafruit project but now how can I make my other esp read this temperature info and turn the relay on connected to it?

The following example shows how another ESP can connect to the Adafruit webserver example to get temperature. Change the http.begin() line.

Code: Select allhttp.begin("http://<IP address of ESP with DHT>/temp");


https://github.com/esp8266/Arduino/blob ... Client.ino

Look for an example of controlling a relay from an ESP.