Logging temperature and humidity data to cloud (ex: AWS) using ESP8266 Nodemcu and DHT11 Sensor
-
ESP8266 NODEMCU
-
DHT11/DHT22 Temperature and Humidity Sensor
-
Breadboard(if required)
-
Connecting wires or jumper wires
-
Arduino IDE get it here
-
You need to manually add DHT library to Arduino IDE as it is not included by default. You can ignore it if you have already included it. Otherwise you can do it following the steps below.
a).Open Arduino IDE
b).Go to Sketch >> Include Library >> Manage Libraries
c).Search for DHT sensor library and install it -
Nodemcu is not detected by default in Arduino IDE. Therefore, you must install Additional Board Manager Url(http://arduino.esp8266.com/stable/package_esp8266com_index.json).
Go to File >> Preferences. Paste the link provided above in "Additional Board Manager Urls".
Then go to Tools >> Board >> Board Manager. Search for esp8266 library and install it.
Then select NodeMCU 1.0(ESP-12 Module) in Tools >> Board with respective Port.
-
Data pin of DHT11 to D2(GPIO) of NodeMCU.
-
VCC of DHT11 to 3V supply of NodeMCU
-
Ground of DHT11 to ground of NodeMCU