Passa al contenuto

 DHT22 
 Temperature sensors 

High-accuracy temperature and humidity sensor with wider range and better stability for industrial and HVAC systems

 Temperature range
-40 / 80°C

 Temperature precision
+/- 0,5K

 Humidity precision 
+/- 2% RH

 Resolution
0,1°C / 0,1%

 Power supply voltage

3,0→6,0V

Response time

0,h Hz

 Typical current
1,5 mA

Price
Medium

What is a DHT22 sensor ?


The DHT22 (or AM2302) is a combined digital temperature and humidity sensor, of better quality than the DHT11.

It integrates:

  • a high-precision capacitive humidity sensor,
  • a calibrated thermistor,
  • and an internal microcontroller that ensures conversion and digital transmission.

It maintains the same simplified 1-wire interface, making it software-compatible with the DHT11 while offering greater accuracy and stability.

Operating principle


The sensor sends a 40-bit digital frame (identical to the DHT11):

8 bits for the whole humidity, 8 bits for the decimal humidity,

8 bits for the whole temperature, 8 bits for the decimal temperature,

and 8 bits for the checksum.

Decoding formula:

Humidity = [(data[0] × 256) + data[1]] / 10

Temperature = [(data[2] × 256) + data[3]] / 10

Example of digital conversion (Arduino)


#include "DHT.h" #define DHTPIN 2 #define DHTTYPE DHT22 DHT dht(DHTPIN, DHTTYPE); void setup() { Serial.begin(9600); dht.begin(); } void loop() { float h = dht.readHumidity(); float t = dht.readTemperature(); Serial.print("Temp: "); Serial.print(t, 1); Serial.print(" °C | Hum: "); Serial.print(h, 1); Serial.println(" %"); delay(2000); }

✅ Example output:

Temp: 23.7 °C | Hum: 47.8 %

Principle diagram


+5V │ [DHT22] │ DATA ───────┐ │ GND │ └── MCU (Arduino, ESP32, STM32…)

💡 Recommended pull-up resistance of 4.7–10 kΩ between DATA and VCC.

Application areas


🌦️ Home weather stations and IoT

🧠 HVAC home automation systems

🌿 Environmental monitoring (greenhouses, cellars, laboratories)

🏠 Indoor comfort control

🧪 Advanced educational projects (Arduino, ESP32, Raspberry Pi)






Should I choose a DHT22 sensor ?

Strengths points

  • 🎯 Excellent precision
    → ±0.5 K and ±2% RH — a significant improvement over the DHT11.
  • 🌡️ Large measurement range
    → From -40 to +80 °C and 0–100 % RH, usable almost anywhere.
  • ⚙️ Compatible with DHT11
    → Same protocol and same Arduino libraries.
  • 🔋 Low consumption
    → Ideal for IoT and battery-powered sensors.

Weaknesses points

  • 🐢 Slow refresh
    → 1 measurement every 2 seconds — too slow for reactive systems.
  • 💧 Sensitive to condensation
    → May require a filter or protective membrane in a humid environment.
  • ⚡ Noisy data without software averaging
    → The small fluctuations of ±0.2 °C are normal.

Useful information

Here is some useful information regarding the DHT22 sensors.

Brooch Name
Description
1 VCC 3,3–6,0 V
2 DATA Time series
3 NC Not connected
4 GND Mass

💡 The DHT22 modules sold with the board already include the pull-up resistor and sometimes a regulator.

Octet Binary value
Signification
1 00101111 Humidity = 47 %
2 10011000 Decimal = 0,8 %
3 00010111 Temperature = 23 °C
4 10111000 Decimal = 0,8 °C
5 01101100 Checksum
Checksum = (sum of the first 4 bytes) mod 256.

3.3V ───────────┐ │ [DHT22] │ DATA ───────┐ │ GND │ │ │ └── Resistance 4,7kΩ ─── +VCC

Sensor Precision (°C) HR Precision (%) Range (°C) Frequency (Hz)
DHT11 ±2,0 ±5 0 → +50 1
DHT22 ±0,5 ±2 −40 → +80 0,5
💡 The DHT22 is the "serious" version of the DHT11 — same simplicity, much better accuracy.
Temperature (°C) Error (K) HR Error (%)
−40 ±1,0 ±3
0 ±0,5 ±2
25 ±0,3 ±2
80 ±0,5 ±3
💡 The DHT22 remains the best compromise between accuracy and price for simple digital humidity and temperature measurements.

More than 1,000,000 probes delivered in 2025

Contact us for a personalized offer

Contact Us

Need a DHT22 sensor?

Whether you need a few parts for a prototype or several hundred for a production line, we support you at every step.