Arduino Projects

DHT11-DHT22 Arduino Tutorial

DHT11-DHT22 Interfacing with Arduino


In This Tutorial, I Will Show You How The Dht11 Sensor Measure Humidity And Temperature I Will Also Explain Some Example codes for How To Interfacing The DHT11 Sensor   With Arduino And Some other Controller.

This DHT11 Sensor It’s Perfect for Making A Remote Weather Station  IS Measures The Tempare And Humdity But Is Slow Compare To The DHT22 Sensor.

I will just Show The Few Points of The DHT11 Sensor

  • Operating Voltage :- 3V To 5.5V
  • Temperature Range :- 0-50 °C
  • Temperature Accuracy :- ±4% °C
  • Humidity Range:- 20-80%
  • Humidity Accuracy:- ±6% °C

I will Just Give The Link to DHT11 Sensor Datasheet

DHT11 Vs DHT22

DHT11 Sensor

DHT22 Sensor

Voltage - 3 to 5V power and I/O

Voltage -3 to 5V power and I/O

Temperature Range - 0 to 50°C with ± 2°C accuracy

Temperature Range - -40 to 80°C with ± 0.5°C accuracy

Humidity Range -20 to 80% with 5% accuracy

Humidity Range - 0 to 100% with 2 to 5% accuracy

Sampling Rate - 1Hz (Once every second)

 Sampling Rate -0.5Hz (Once every two seconds)

Price - Low

Price - High

DHT11 And DHT22 Pinout

Screenshot 2022 12 18 at 9.16.42 PM e1671378965280                       Screenshot 2022 12 18 at 9.16.52 PM e1671379033103

PCB Design

PCB Design3


PCB Design3 1

PCB Design2

PCB Design1

Wiring Diagram of DHT11 And DHT22 With Arduino

Arduino dht11 sensor

Screenshot 2022 12 18 at 10.15.35 PM

Library Installation

Just Download The DHT.h Library

Screenshot 2022 12 18 at 9.32.46 PM

Display Reading Is Serial Monitor

If You Used The Code Then Connected The DHT11 Sensor PIN Number D4




Display Reading In LCD Display

lcd circuit diagram

Screenshot 2022 12 18 at 10.13.39 PM

If You Used The Code Then Connected The DHT11 Sensor PIN Number D4

And 16×2 LCD Display Will Be connected To Pin Number D12,D11,D10,D9,D8,D7


Code With Oled Display


If You are Interested In More Projects Then Plz Check Out 


Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker