Components / Sensors / DHT21 / AM2301 humidity sensor

DHT21 / AM2301 humidity sensor

DHT-family sensor in a case with wires.

MeasuresTemperature and relative humidity
Accuracy±0.5 °C, ±3 % RH
InterfaceSingle-wire
Supply voltage3.3 to 5.2 V
SensorsReviewedMPN AM2301Used in 2 projects
DHT21
In short

What is the DHT21 / AM2301 humidity sensor and what is it used for?

DHT-family sensor in a case with wires. Makers use it for greenhouses.

How it works

The same principle as the DHT22 in a cased version.

Key specifications

Sensor specValue
MeasuresTemperature and relative humidity
Accuracy±0.5 °C, ±3 % RH
InterfaceSingle-wire
Supply voltage3.3 to 5.2 V

Pinout

Red3.3 to 5.2 V
BlackGround
YellowData (needs a pull-up, often built in)

How to use it

Use the DHT library with type DHT21. Its plastic case with a cable suits mounting outdoors under a shelter.

Applications

Alternatives

Buy at

Common questions

What is the DHT21 / AM2301 humidity sensor used for?

In maker projects: greenhouses.

How does the DHT21 / AM2301 humidity sensor work?

The same principle as the DHT22 in a cased version.

What voltage does the DHT21 / AM2301 humidity sensor need?

3.3 to 5.2 V.

How do I connect the DHT21 / AM2301 humidity sensor to an Arduino or ESP32?

Single-wire. Pins: Red (3.3 to 5.2 V), Black (Ground), Yellow (Data (needs a pull-up, often built in)).

What can I use instead of the DHT21 / AM2301 humidity sensor?

DHT22 Sensor.