Tutorial How to Use DHT11 Humidity Sensor
by mybotic in Circuits > Electronics
1601 Views, 3 Favorites, 0 Comments
Tutorial How to Use DHT11 Humidity Sensor
![dht11-01.jpg](/proxy/?url=https://content.instructables.com/FZX/4ZNR/JJOK35AB/FZX4ZNRJJOK35AB.jpg&filename=dht11-01.jpg)
Description:
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 highperformance 8-bit microcontroller, offering excellent quality, fast response, anti-interference ability and cost-effectiveness
Specifications:
Measurement Range: 20-90% RH, 0 - 50℃
Humidity Accuracy: ±5% RH
Temperature Accuracy: ± 2℃
Resolution: 1
Package: 3 pin single row
Material Preparation
![MM_jumper.jpg](/proxy/?url=https://content.instructables.com/FYJ/R7A4/JJOK356A/FYJR7A4JJOK356A.jpg&filename=MM_jumper.jpg)
![Arduino UNO.jpg](/proxy/?url=https://content.instructables.com/FVX/46TV/JJOK356E/FVX46TVJJOK356E.jpg&filename=Arduino UNO.jpg)
![dht11-01.jpg](/proxy/?url=https://content.instructables.com/FV8/2KLI/JJOK3573/FV82KLIJJOK3573.jpg&filename=dht11-01.jpg)
For this tutorial, the items needed to run this project are:
- Arduino Uno
- Breadboard
- Male to male jumper
- DHT11 Humidity Sensor
Hardware Installation
![Connection.jpg](/proxy/?url=https://content.instructables.com/FHL/XV1S/JJOK359X/FHLXV1SJJOK359X.jpg&filename=Connection.jpg)
The hardware configuration is stated as below:
- +pin on the DHT11 Humidity sensor -> 5V port of Arduino UNO
- -pin on the DHT11 Humidity sensor -> Ground port of Arduino UNO
- out pin on the DHT11 Humidity sensor -> A0
Source Code
- Download the test code and open it by using Arduino software or IDE.
- Make sure that you have choose the right board and the corresponding port. (In this tutorial, Arduino Uno is used)
- Then, upload the test code into your Arduino Uno.
Downloads
Result
![temperature.PNG](/proxy/?url=https://content.instructables.com/F79/UHL5/JJOK3527/F79UHL5JJOK3527.png&filename=temperature.PNG)
After compile the code and upload to the Arduino UNO, open your serial monitor and examine the humidity and temperature of your surrounding from now on. Have Fun!