DHT11 based Temperature Humidity Monitoring IoT Project

Introduction

Temperature and humidity change every moment. Sometime it is necessary to monitor it as well. This is a easy and simple project using some simple modules. This is a DHT11 based temperature humidity monitoring project. This also uses WeMos D1 Mini Wifi module and Blynk for IoT monitoring.

This project can be built by beginners as it requires minimum components. At the end of this project you will be able to know how to interface DHT11 sensor with Wemos D1 Mini, OLED display and Blynk.

How it Works?

DHT11

DHT11 is a temperature and humidity sensor. It will collect the data and send to WeMos D1 Mini WIFI Module. This module will display the data in a OLED display. The wifi module will also send the data to Blynk. We can also monitor the temperature and humidity changes in our smartphones using Blynk app.

Parts List

  • WeMos D1 Mini x 1
  • DHT11 Sensor x 1
  • OLED display(0.96 inch) x 1
  • Jumper wires for bread board connection
  • 5 Volts Power supply

Sensors and Modules Functions

WeMos D1 Mini

WeMos D1 mini

WeMos D1 mini is another ESP8266 module. This will work as a brain of this project which will contain the code and send data to Oled display.

DHT11 Temperature and Humidity Sensor

DHT11 Sensor

This sensor is used to measure temperature and humidity from atmosphere. Feature of this sensor are given below

  • Operating Voltage  3V – 5.5V DC
  • Operating Current 0.5mA
  • Humidity Range 20-90%RH
  • Humidity Accuracy ±4% RH
  • Temperature Range 0-50 ℃
  • Temperature Accuracy ±2℃

OLED DisplayOLED Display

OLED stands for Organic LED. This is a display used to show the real time data. It is available in 4/6 pins for interfacing.

Features

  • Power supply : 3V – 5V DC
  • Interface : I2C / SPI
  • Driver IC : SSD1306
  •  Power consumption : 0.04 W (normal operation)
  • Working Temperature : 30 ºC – 70 ºC

Libraries for Arduino

4 Pins Oled Details

  • VCC : Power Supply
  • GND : Ground
  • SLC : Serial Clock
  • SDA : Serial Data

6 Pins Oled Details

  • VCC : Power Supply
  • GND : Ground
  • SLC : Serial Clock
  • SDA/MOSI : Serial Data
  • RES : Reset
  • DC : Data Command (Used for SPI protocol)

Connection Diagram

This project contains few components which are connected as below diagram. You can arrange all these components in a breadboard and later you can make it on a PCB.

DHT11 with OLED

Blynk Setup

Blynk is used for monitoring temperature and humidity over internet using smartphone. You can follow the steps as shown below to create project and configure it.

Open Blynk App and click on New Project

DHT11 Blynk config

Provide a Name for your project. Select Device as WeMos D1 Mini and connection type is Wi-Fi. Tap on Create

DHT11 Blynk config

Auth Token will be sent to registered email id.

Auth Token

Tap on below highlighted icon to add widget

Blynk config

Select Gauge Widget two times for Temperature and Humidity.

Adding gauge

Add name in the gauge As Temperature. Pin will be V6 and the higher limit will be 50. Reading rate will be set to  1Sec.

DHT11 Blynk config

For humidity Input pin will be V5 and the higher limit will be 100.

Humidity config

 

Code

The code is simple and you can download the code from this link. Just add your Auth Token and put your network ID and password. Auth Token will be sent to you registered email id.

code

Construction

You can gather and place all the components on a PCB. Upload your code in WeMos d1 mini and power the project.

DHT11_WeMos_d1_IoT

Testing

This is a complete video of the project.

Conclusion

This project can be used at home and other place where temperature and humidity needs to be monitored. Its a simple project with 3 modules. It can be build by any beginner electronics hobbyist. All the modules are easily available in market. Please comment on views on this project.

Related Projects:

1 thought on “DHT11 based Temperature Humidity Monitoring IoT Project”

Leave a Comment