DHT11 vs DHT22: Datasheet, Pinout, and Features
DHT11 datasheet pdf and Unclassified product details from Aosong (Guangzhou) Elec stock available at Utmel









DHT11 and DHT22 are the humidity sensor. This article is going to introduce the features of DHT11 and DHT22, and the comparison between DHT11 and DHT22.

DHT11 vs DHT22 with Arduino
Overview of the DHT11
The DHT11 is a commonly used temperature and humidity sensor that comes with a dedicated NTC to measure temperature and an 8-bit microcontroller to output the values of temperature and humidity as serial data. The component is a 4-pin single-row pin package. It is convenient to connect and special packages can be provided according to users’ requests.
Overview of the DHT22
DHT22 output calibrated digital signal. It utilizes exclusive digital-signal-collecting-technique and humidity sensing technology, assuring its reliability and stability. Its sensing elements are connected with an 8-bit single-chip computer. Every sensor of this model is temperature compensated and calibrated in an accurate calibration chamber and the calibration-coefficient is saved in the type of program in OTP memory, when the sensor is detecting, it will cite coefficient from memory.
DHT11 Pinout

DHT11 Pinout
DHT22 Pinout

DHT22 Pinout
Where to use DHT11 and DHT22 Sensors
The DHT11 and DHT22 are commonly used Temperature and humidity sensors. The sensor comes with a dedicated NTC to measure temperature and an 8-bit microcontroller to output the values of temperature and humidity as serial data. The sensor is also factory calibrated and hence easy to interface with other microcontrollers.
The sensor can measure temperature from 0°C to 50°C and humidity from 20% to 90% with an accuracy of ±1°C and ±1%. So if you are looking to measure in this range then this sensor might be the right choice for you.
How to use DHT11 and DHT22 Sensors
The DHT11 and DHT22 Sensors are factory calibrated and output serial data and hence they are highly easy to set it up. The connection diagram for this sensor is shown below.
As you can see the data pin is connected to an I/O pin of the MCU and a 5K pull-up resistor is used. This data pin outputs the value of both temperature and humidity as serial data. If you are trying to interface DHT11 and DHT22 with Arduino then there are ready-made libraries for them that will give you a quick start.
DHT11 and DHT22 Applications
Measure temperature and humidity
Local Weather station
Automatic climate control
Environment monitoring
DHT11 Features
Ultra-low-cost
3 to 5V power and I/O
2.5mA max current use during conversion (while requesting data)
Good for 20-80% humidity readings with 5% accuracy
Good for 0-50°C temperature readings ±2°C accuracy
No more than 1 Hz sampling rate (once every second)
Body size 15.5mm x 12mm x 5.5mm
4 pins with 0.1" spacing
DHT22 Features
Low cost
3 to 5V power and I/O
2.5mA max current use during conversion (while requesting data)
Good for 0-100% humidity readings with 2-5% accuracy
Good for -40 to 80°C temperature readings ±0.5°C accuracy
No more than 0.5 Hz sampling rate (once every 2 seconds)
Body size 15.1mm x 25mm x 7.7mm
4 pins with 0.1" spacing
DHT11 vs DHT22
| DHT11 | DHT22 | |
| Operating Voltage | 3 to 5V | 3 to 5V |
| Max Operating Current | 2.5mA max | 2.5mA max |
| Humidity Range | 20-80% / 5% | 0-100% / 2-5% |
| Temperature Range | 0-50°C / ± 2°C | -40 to 80°C / ± 0.5°C |
| Sampling Rate | 1 Hz (reading every second) | 0.5 Hz (reading every 2 seconds) |
| Body size | 15.5mm x 12mm x 5.5mm | 15.1mm x 25mm x 7.7mm |
| Advantage | Ultra low cost | More Accurate |
Conclusion
Though DHT22 is more precise, more accurate, and works in a bigger range of temperature & humidity; there are three things where the DHT11 beats the hell out of DHT22. It’s less expensive, smaller in size, and has a higher sampling rate. The sampling rate of the DHT11 is 1Hz i.e. one reading every second, while the sampling rate of DHT22 is 0.5Hz i.e. one reading every two seconds.
However, the operating voltage of both sensors is from 3 to 5 volts, while the max current used during conversion (while requesting data) is 2.5mA. And the best thing is that DHT11 and DHT22 sensors are ‘swappable’ – meaning if you build your project with the one you can just unplug it and use another. Your code may have to adjust a little bit at least the wiring is the same!
Popularity by Region
Parts with Similar Specs
Are DHT11 and DHT22 interchangeable?
The DHT11 is a bit smaller than the DHT22 and is also less expensive. The nice thing about these sensors is that they are interchangeable, meaning that you can just replace the DHT11 with a DHT22 or vice versa.
Are the DHT11 and DHT22 waterproof?
They are not waterproof.
The General Introduction to 1N74728 April 20221144
Arduino Nano ESP32: Overview, Features and Applications06 October 20239530
Exploring the Renesas H8S/2145B and H8S/2148B Microcontrollers: Architectural Overview and Functional Capabilities29 February 2024276
BC639 Transistor: How to Use it?12 April 20228478
STMPS2151STR Switch: Features, Applications and Datasheet22 November 2023380
A Comprehensive Guide to the Microchip PIC12F629/675 Microcontroller29 February 2024970
STM32F100C8T6B: 24MHz, 48-LQFP, Pinout and Datasheet28 February 20223606
LIS2DW12TR Motion Sensor: Datasheet, Pinout, Application Hint07 April 20224881
Exploring the Cyber Physical System of Electric Vehicles25 March 20242920
A Complete Guide to Tantalum Capacitors in 202510 July 20254106
Advanced Aircraft Power Electronics Systems and Influence of Simulation, Standards, and Wide Band-Gap Devices18 February 20242905
Getting Started with Raspberry Pi: A Beginner's Guide23 August 20235044
What is Universal Serial Bus (USB)?12 June 202612772
Carbon Film vs Metal Film Resistors: Complete Comparison Guide19 May 20255568
Electronic components distributor UTMEL to Showcase at electronica China07 June 20244454
What is Regulated Power Supply?08 January 202115203
Aosong (Guangzhou) Elec
In Stock
United States
China
Canada
Japan
Russia
Germany
United Kingdom
Singapore
Italy
Hong Kong(China)
Taiwan(China)
France
Korea
Mexico
Netherlands
Malaysia
Austria
Spain
Switzerland
Poland
Thailand
Vietnam
India
United Arab Emirates
Afghanistan
Åland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antigua & Barbuda
Argentina
Armenia
Aruba
Australia
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bonaire, Sint Eustatius and Saba
Bosnia & Herzegovina
Botswana
Brazil
British Indian Ocean Territory
British Virgin Islands
Brunei
Bulgaria
Burkina Faso
Burundi
Cabo Verde
Cambodia
Cameroon
Cayman Islands
Central African Republic
Chad
Chile
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Congo
Congo (DRC)
Cook Islands
Costa Rica
Côte d’Ivoire
Croatia
Cuba
Curaçao
Cyprus
Czechia
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Eswatini
Ethiopia
Falkland Islands
Faroe Islands
Fiji
Finland
French Guiana
French Polynesia
Gabon
Gambia
Georgia
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guyana
Haiti
Honduras
Hungary
Iceland
Indonesia
Iran
Iraq
Ireland
Isle of Man
Israel
Jamaica
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Kosovo
Kuwait
Kyrgyzstan
Laos
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macao(China)
Madagascar
Malawi
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Micronesia
Moldova
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
North Korea
North Macedonia
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestinian Authority
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn Islands
Portugal
Puerto Rico
Qatar
Réunion
Romania
Rwanda
Samoa
San Marino
São Tomé & Príncipe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Sint Maarten
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Sudan
Sri Lanka
St Helena, Ascension, Tristan da Cunha
St. Barthélemy
St. Kitts & Nevis
St. Lucia
St. Martin
St. Pierre & Miquelon
St. Vincent & Grenadines
Sudan
Suriname
Svalbard & Jan Mayen
Sweden
Syria
Tajikistan
Tanzania
Timor-Leste
Togo
Tokelau
Tonga
Trinidad & Tobago
Tunisia
Turkey
Turkmenistan
Turks & Caicos Islands
Tuvalu
U.S. Outlying Islands
U.S. Virgin Islands
Uganda
Ukraine
Uruguay
Uzbekistan
Vanuatu
Vatican City
Venezuela
Wallis & Futuna
Yemen
Zambia
Zimbabwe


Product
Brand
Articles
Tools
