Components / Sensors / HTU21D humidity sensor

HTU21D humidity sensor

Small I2C humidity sensor.

MeasuresTemperature and relative humidity
Accuracy±0.3 °C, ±2 % RH
InterfaceI2C
I2C address0x40
SensorsReviewedMPN HTU21DUsed in 2 projects
HTU21D
In short

What is the HTU21D humidity sensor and what is it used for?

Small I2C humidity sensor. Makers use it for room monitors.

How it works

A capacitive humidity sensor with factory calibration.

Key specifications

Sensor specValue
MeasuresTemperature and relative humidity
Accuracy±0.3 °C, ±2 % RH
InterfaceI2C
I2C address0x40
Supply voltage1.5 to 3.6 V

Pinout

VIN3.3 V (some boards 5 V)
GNDGround
SCLI2C clock
SDAI2C data

How to use it

Use the SparkFun HTU21D library at address 0x40. Do not put it on the same bus as an Si7021, which uses the same address.

Applications

Alternatives

Buy at

Common questions

What is the HTU21D humidity sensor used for?

In maker projects: room monitors.

How does the HTU21D humidity sensor work?

A capacitive humidity sensor with factory calibration.

What voltage does the HTU21D humidity sensor need?

1.5 to 3.6 V.

How do I connect the HTU21D humidity sensor to an Arduino or ESP32?

I2C. Pins: VIN (3.3 V (some boards 5 V)), GND (Ground), SCL (I2C clock), SDA (I2C data).

What can I use instead of the HTU21D humidity sensor?

SHT40 temperature and humidity sensor.