Main Content

DHT11 Arduino Library and ThingSpeak

DHT11 Temp and Humidity library from scratch to send data to ThinkSpeak with an AZDelivery ESP8266 ESP-12F NodeMCU Lua Amica V2

In this project I develop an Arduino library to read the data generated by the DHT11 Humidity and Temperature sensor to send it continuously to the ThingSpeak cloud services with an AZDelivery ESP8266 ESP-12F NodeMCU Lua Amica V2.

There are many libraries ready to use to read DHT11 sensor data. So, why reinvent the rule? Just for the pleasure of understanding how things work and maybe improving them.

I use a logic analyzer and the DHT11 sensor datasheets to understand the protocol and develop my own library for the sensor.DHT11 Temperature & Humidity Sensor

DHT11 Temperature & Humidity Sensor features a temperature & humidity sensor complex with a calibrated digital signal output. By using the exclusive digital-signal-acquisition technique and temperature & humidity sensing technology, it ensures high reliability and excellent long-term stability. This sensor includes a resistive-type humidity measurement component and an NTC temperature measurement component, and connects to a high performance 8-bit microcontroller, offering excellent quality, fast response, anti-interference ability and cost-effectiveness.”

Link to article