Smart room control using ESP8266, DHT11, and smart switches project derived from https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/
- Install Ardurino IDE
- Follow this guide to install the board drivers and runa hello world LED code, to see if everything is working as expected.
- Connect DHT11 sensor as follows
- Vdd to 3V pin left of USB
- GND to G pin left of USB
- Signal pin to D1 left of USB
- Open the dht11_server_revAG.ino file in Ardurino IDE. Update the following Parameters
- Replace with your network credentials
- const char* ssid = "insert wifi ssid here";
- const char* password = "insert wifi password here";
- // IFTTT URLs here
- String heatOn = "insert releavent ifttt url here"; //Only "" if not using
- String heatOff = "insert releavent ifttt url here"; //Only "" if not using
- String coldOn = "insert releavent ifttt url here"; //Only "" if not using
- String coldOff = "insert releavent ifttt url here"; //Only "" if not using
- String humiOn = "insert releavent ifttt url here"; //Only "" if not using
- String humiOff = "insert releavent ifttt url here"; //Only "" if not using
- String serverPath = "";
- ac, heat and humidity control flags
- ac_control = 0 //1-Enable, 0-Disable control
- heat_control = 0 //1-Enable, 0-Disable control
- humi_control = 0 //1-Enable, 0-Disable control
- Heat, AC , Humidity Thresholds here [on_threshold, off_threshold]
- heat_temp = [16, 18] //in degC
- cold_temp = [18, 16] //in degC
- humi_threshold = [80, 90] //in percentage
- Might have to install ESPAsyncWebServer and ESPAsyncTCP for things to work. Use https://bit.ly/3wY1H6h from Molemi IOT to download.
- Replace with your network credentials