DHT22 Specifications
Review DHT22 electrical specifications, operating conditions and package details.
Key specifications
Humidity and temperature are separate 16-bit words. Temperature uses a sign bit. The fifth byte checks the sum of the preceding four bytes.
Package details
AM2302 / DHT22 · Vented SIP-4
| Property | Details |
|---|---|
| Manufacturer | ASAIR / Aosong |
| Part number | AM2302 / DHT22 |
| Package | Vented SIP-4 |
| Connections | 4 pins |
| Mounting | Through-hole |
| Lead pitch | 2.54 mm |
| Package code | SIP-4 |
| Thermal reference | −40°C to +80°C · humidity scope depends on conditions |
Supply and update rate
Match the sensor rail and GPIO voltage
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Supply | 3.3–5.5 V | 5 V nominal |
| Startup / request interval | ≥2 s | Avoid back-to-back polling |
| Pullup reference | 5.1 kΩ | Select for the actual cable and bus capacitance |
| Sleep / measuring current | 15 µA / 1200 µA typical | Manufacturer reference conditions |
| Example bypass | 100 nF | Place beside VDD and GND |
| GPIO mode | Open drain or output/input switching | Never drive HIGH while the sensor is pulling LOW |
No specifications match. Try a parameter name or a unit.
The example uses a 5 V-tolerant controller. A 3.3 V controller needs a compatible pullup strategy or level translation.
Measurement limits
Typical error changes across the range
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Temperature | −40°C to +80°C | 0.1°C digital resolution |
| Humidity envelope | 0–99.9%RH | Normal recommended scope is narrower; see the conditions curve |
| Typical central-range errors | ±0.5°C and ±2%RH | Do not apply these as maximum limits across all conditions |
| Response times | <10 s temperature; <6 s humidity | 63% step response under specified airflow |
| Condensation | Avoid | A wet sensing element does not represent the air’s normal humidity |
| Thermal separation | Keep away from regulators and processors | Board heat can bias both displayed values |
No specifications match. Try a parameter name or a unit.
The linked manufacturer curves specify error versus temperature and humidity.
Pulse timing
AM2302 protocol · microseconds unless noted
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Host start LOW | 0.8–20 ms | 1 ms typical; use at least 1 ms |
| Release before response | 10–200 µs | 30 µs typical |
| Response LOW / HIGH | 75–85 µs each | 80 µs typical |
| Data-bit LOW | 48–55 µs | 50 µs typical |
| Zero-bit HIGH | 22–30 µs | 26 µs typical |
| One-bit HIGH | 68–75 µs | 70 µs typical |
| End-of-frame LOW | 45–55 µs | 50 µs typical |
No specifications match. Try a parameter name or a unit.
Receive with bounded timeouts; schedule other interrupt-heavy work outside the frame.
Decode a complete frame
Five bytes · big-endian words · sum check
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Humidity | ((byte0 << 8) | byte1) / 10 | Unsigned 16-bit word |
| Temperature magnitude | (((byte2 & 0x7F) << 8) | byte3) / 10 | Bit 7 of byte2 supplies the sign |
| Negative temperature | Negate when (byte2 & 0x80) != 0 | Sign and magnitude, not two’s complement |
| Checksum | (byte0 + byte1 + byte2 + byte3) & 0xFF | Must equal byte4 |
| Example | 02 92 01 0D A2 hex | 65.8%RH, +26.9°C |
| Negative example | Temperature word 80 65 hex | −10.1°C |
| DHT11 compatibility | Different value decoding | Do not reuse the DHT11 integer/fraction byte parser |
No specifications match. Try a parameter name or a unit.
The packet represents the prior measurement; the transaction triggers the next measurement.
Four-lead connection guide
Vent face forward, leads downward
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| 1 · VDD | Supply and bypass | 5 V in the illustrated circuit |
| 2 · SDA | GPIO with pullup | One sensor per GPIO |
| 3 · NC | Leave open | No internal signal to connect |
| 4 · GND | Controller ground | Short return connection |
| Cable or breakout version | Check its own connector labels | The bare-sensor sequence is not a universal module connector pinout |
| Protocol name | Timed single-wire interface | Neither I²C nor addressed Dallas 1-Wire |
No specifications match. Try a parameter name or a unit.
Do not join several unaddressed sensors to one data line.
Housing and assembly
Original bare-sensor illustration
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Housing width / depth | 15.4 / 7.8 mm | Nominal drawing dimensions |
| Main body / including tab | 20.1 / 25.3 mm high | The mounting eye is shown in the 3D view |
| Lead pitch / length | 2.54 / 7.5±0.5 mm | Four straight contacts |
| KiCad footprint | 1.8 mm lands; 1.0 mm drills | Check finished lead size and board assembly clearance |
| Air path | Leave vents exposed | Avoid enclosing the sensor beside hot components |
| SMD choice | No generic IC substitution | This page covers the bare vented sensor |
No specifications match. Try a parameter name or a unit.
The authored footprint retains all four contacts. Its outline is an assembly reference, not an enclosure drilling template.
Connections by function
Select a pin for its function, connection guidance and electrical notes.