Skip to datasheet
AM2302 temperature and humidity sensor

DHT22 Reference Tables

Search the DHT22 pin reference and manufacturer-referenced specification tables.

Selected packageVented SIP-4AM2302 / DHT22
Physical connections4 pinsPackage-specific numbering
Reference collection7 tables38 parameters & pin functions

Pin reference

Signal names, electrical functions and connection guidance

Vented SIP-4
Physical pin numbers4 pins

Scroll within the table to see all columns and rows.

DHT22 pin functions and connections
PinSignalTypeFunction & connection
VDDSupplyPositive supply input.
Connection guidance

Connect to a 3.3–5.5 V rail with local bypassing. The circuit shown uses 5 V.

The GPIO must tolerate the data pullup voltage.

SDABidirectional dataTimed single-wire measurement interface.
Connection guidance

Connect a compatible GPIO and a pullup; release the line for the sensor response.

This is not I²C or an addressed Dallas 1-Wire interface.

NCNo connectionUnused physical contact.
Connection guidance

Leave open.

GNDGroundCommon supply and logic reference.
Connection guidance

Connect to the controller return.

Vented SIP-4 · Front view · vent face toward you · leads down · Select a pin number to open its interactive pinout.

Supply and update rate

Match the sensor rail and GPIO voltage

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values7 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values7 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

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

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

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.

Read each value with its conditions

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

ASAIR / Aosong · AM2302 technical manual · V1.0
Official PDF datasheet

Component view