switch
This project consists of these 3 parts:
- The server provides a web interface for displaying humidity and temperature, and controlling state (on/off) of the relay.
- NodeMCU reads humidity and temperature values from DHT11 and send them to server.
- After receiving a message i.e. humidity and temperature, the server send back state for controlling the relay.
Demo
https://www.youtube.com/watch?v=SvSSZJUTwFQ
Installation note
- dht_lib.lua is needed to be installed to NodeMCU. dht_lib.lua can be found in nodemcu_firmware repository.