DHT11 /DHT22 Temperature Sensor

Introduction

DHT11/DHT22 is one of the most commonly used sensors for temperature and humidity measurements and helps agriculture to grow healthy plants . Humidity and temperature measurements are analytic, not just to make humans familiar with different weather conditions. So, in this article, we will give a short explanation of how to interface DHT11/DHT22 with Arduino UNO.

DHT11/DHT22 is a low-cost yet reliable temperature and humidity sensor. It allows the evaluation of the environmental conditions of humidity and temperature. Further, its temperature range is from 0 to 50°C. And, the humidity range is from 20% to 80%. Moreover, the sensor works on a very low voltage range from 3 to 5 volts. Also, it produces a current of 2.5mA. To summarize, the internal structure of the sensor consists of a thermistor and a humidity-sensing element.

Hardware Components

You will need the following hardware Components for the Interfacing of the DHT11 /DHT22 Temperature Sensor with Arduino.

ComponentsValueQty
Arduino UNO1
DHT11 Temperature & Humidity Sensor1
DHT11 Temperature & Humidity Sensor (4 pins)1
Breadboard1
Resistor4.7KΩ1
Cobbler Breakout Kit1
Jumper Wires

Steps For Making DHT11 /DHT22 Temperature Sensor

To use a Soil Moisture Sensor With an LCD Display, you also require an Arduino, a breadboard, and some wires. Once you have them all; follow the following steps:

Circuit Diagram

You will make the connections carefully according to the Circuit Diagram of the DHT11 /DHT22 Temperature Sensor given Below

Wiring / Connections

You will complete the connections carefully according to the Table given Below

ArduinoDHT11 Sensor
3.3VWith a 4.7k resistor and Vcc
GNDGND
D5Signal Pin

Installing Arduino IDE

Now, you are required to install Arduino IDE Software from its official website Arduino. Here is a simple step-by-step guide on “How to install Arduino IDE“.

Installing Libraries

Before you start uploading a code, download and unzip the following libraries at /Progam Files(x86)/Arduino/Libraries (default), in order to use the sensor with the Arduino board. Here is a simple step-by-step guide on “How to Add Libraries in Arduino IDE“.

Code

Here you copy the given code and paste it into Arduino IDE Software and upload the code

Let’s Test the Circuit

Now we test the circuit and run the circuit. first, turn on the Arduino and insert the ABC Senor in the Arduino by using jumper wires. and the Readings will Display on the LCD Screen.

Working Explanation

Let’s explore the coding to understand the working:

  • Place the 4.7KΩ resistor between Vcc and signal Pin and Connect a white male-to-male jumper wire between Vcc and D5 in the Arduino
  • Connect a red male-to-male jumper wire between Arduino Vcc and the 3.3v pin of the Sensor
  • Connect a black male-to-male jumper wire between Arduino GND and sensor GND
  • Place the DHT11 sensor into GND (-), Vcc (+), and Signal (s), and Plug the USB cable from your computer into your Arduino

Applications

Conclusion

We know that you understand The ABC Circuit If you have any problem making this Circuit Please ask any questions or anything in the comment section.

Leave a Comment