DHT11: Temperature and Humidity Sensor

by juanqr93 in Circuits > Microcontrollers

216 Views, 1 Favorites, 0 Comments

DHT11: Temperature and Humidity Sensor

WhatsApp Image 2021-01-28 at 01.27.20(3).jpeg

BOM:

NodeMCU

Breadboard

Jumper wires

DH11

4.7 Kohm resistor

Connection

conexion-dht11-nodemcu-4pines-smelpro.jpg

Code Upload

Upload the code and make sure of downloading the library from sketch>manage library> DHTesp

I needed this modified library because all the others gave me a "nan" output

ThingSpeak

WhatsApp Image 2021-01-28 at 01.27.20.jpeg

Go to ThingSpeak.com and start a channel,
Obtain the API key and place this key in the arduino code.

Optional: Cellphone Access

WhatsApp Image 2021-01-28 at 01.27.20(1).jpeg
WhatsApp Image 2021-01-28 at 01.27.20(2).jpeg

Download ThingSpeak on your cellphone and on the bottom right click the "+" to add a new channel.