Skip to datasheet
AM2302 temperature and humidity sensor

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.

Temperature−40–80 °C
Humidity envelope0–99.9 %RH · extended range
Digital step0.1 °C / %RH
Supply3.3–5.5 V

Operating profile

Supply, signals and operating conditions

DHT22 operating profile
ParameterValueConditions / notes
Selected packageVented SIP-4Bare sensor · four physical contacts
Request interval≥2 sAllow the same interval after power-up
Central-range typical error±0.5°C / ±2%RHSee the manufacturer error curves
Use these values with the stated grade and test conditions.

Package details

AM2302 / DHT22 · Vented SIP-4

Selected package
Selected DHT22 physical package
PropertyDetails
ManufacturerASAIR / Aosong
Part numberAM2302 / DHT22
PackageVented SIP-4
Connections4 pins
MountingThrough-hole
Lead pitch2.54 mm
Package codeSIP-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.

ParameterValueConditions / notes
Supply3.3–5.5 V5 V nominal
Startup / request interval≥2 sAvoid back-to-back polling
Pullup reference5.1 kΩSelect for the actual cable and bus capacitance
Sleep / measuring current15 µA / 1200 µA typicalManufacturer reference conditions
Example bypass100 nFPlace beside VDD and GND
GPIO modeOpen drain or output/input switchingNever drive HIGH while the sensor is pulling LOW

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.

ParameterValueConditions / notes
Temperature−40°C to +80°C0.1°C digital resolution
Humidity envelope0–99.9%RHNormal recommended scope is narrower; see the conditions curve
Typical central-range errors±0.5°C and ±2%RHDo not apply these as maximum limits across all conditions
Response times<10 s temperature; <6 s humidity63% step response under specified airflow
CondensationAvoidA wet sensing element does not represent the air’s normal humidity
Thermal separationKeep away from regulators and processorsBoard heat can bias both displayed values

The linked manufacturer curves specify error versus temperature and humidity.

Pulse timing

AM2302 protocol · microseconds unless noted

Scroll sideways to see all columns.

ParameterValueConditions / notes
Host start LOW0.8–20 ms1 ms typical; use at least 1 ms
Release before response10–200 µs30 µs typical
Response LOW / HIGH75–85 µs each80 µs typical
Data-bit LOW48–55 µs50 µs typical
Zero-bit HIGH22–30 µs26 µs typical
One-bit HIGH68–75 µs70 µs typical
End-of-frame LOW45–55 µs50 µs typical

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.

ParameterValueConditions / notes
Humidity((byte0 << 8) | byte1) / 10Unsigned 16-bit word
Temperature magnitude(((byte2 & 0x7F) << 8) | byte3) / 10Bit 7 of byte2 supplies the sign
Negative temperatureNegate when (byte2 & 0x80) != 0Sign and magnitude, not two’s complement
Checksum(byte0 + byte1 + byte2 + byte3) & 0xFFMust equal byte4
Example02 92 01 0D A2 hex65.8%RH, +26.9°C
Negative exampleTemperature word 80 65 hex−10.1°C
DHT11 compatibilityDifferent value decodingDo not reuse the DHT11 integer/fraction byte parser

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.

ParameterValueConditions / notes
1 · VDDSupply and bypass5 V in the illustrated circuit
2 · SDAGPIO with pullupOne sensor per GPIO
3 · NCLeave openNo internal signal to connect
4 · GNDController groundShort return connection
Cable or breakout versionCheck its own connector labelsThe bare-sensor sequence is not a universal module connector pinout
Protocol nameTimed single-wire interfaceNeither I²C nor addressed Dallas 1-Wire

Do not join several unaddressed sensors to one data line.

Housing and assembly

Original bare-sensor illustration

Scroll sideways to see all columns.

ParameterValueConditions / notes
Housing width / depth15.4 / 7.8 mmNominal drawing dimensions
Main body / including tab20.1 / 25.3 mm highThe mounting eye is shown in the 3D view
Lead pitch / length2.54 / 7.5±0.5 mmFour straight contacts
KiCad footprint1.8 mm lands; 1.0 mm drillsCheck finished lead size and board assembly clearance
Air pathLeave vents exposedAvoid enclosing the sensor beside hot components
SMD choiceNo generic IC substitutionThis page covers the bare vented sensor

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.

Supply1 pin

Timed data1 pin

Not connected1 pin

Ground1 pin

Read the conditions with every value

Typical values describe stated test conditions. Absolute maximum ratings are stress limits, not operating targets.

Official PDF datasheet

Component view