soldr.ai

Docs  /  Components

AHT21B temperature and humidity sensor: specs and pinout

A digital I2C temperature and relative humidity sensor from Aosong (ASAIR), with calibrated output, on a small module.

Every value cites its sourceChip-level pinout

Buy on Compoden

Specs

SpecValueSource
Supply voltage VCC2.0 V to 5.5 V (typical 3.3 V)source
Table 2 Electric Specification (p.2); section 3.1 (p.5)
InterfaceI2C, standard two-wire protocolsource
Table 2 (p.2)
I2C device address0x38 (7-bit)source
section 5.3 (p.7)
I2C clock0 to 100 kHz standard, up to 400 kHz fast modesource
Table 8 (p.6)
Humidity range and resolution0 to 100 %RH (extended range; normal operating range is 0-80 %RH), resolution 0.024 %RHsource
Table 1 Humidity Characteristics and note 3 (p.2)
Humidity accuracytypical +/-2 %RH at 25 C, 3.3 V (maximum per Figure 2)source
Table 1 and Figure 2 (p.2)
Temperature range and resolution-40 C to 80 C (extended range), resolution 0.01 Csource
Table 3 Temperature Characteristics (p.2)
Measurement current320 uA typical while measuring; 250 nA max dormant (3.3 V, below 60 C)source
Table 2 and note 5 (p.2)
Power-up waitup to 20 ms to idle state; wait 40 ms after power-on before readingsource
sections 5.1 (p.6) and 5.4 (p.7)

Power

ValueSource
Supply2.0 V to 5.5 V, 3.3 V recommendedsource
Table 2 (p.2), section 3.1 (p.5)
Current320 uA while measuringsource
Table 2 (p.2), section 3.1 (p.5)

Chip pins

These are the pins of the chip on the module, from the chip datasheet. The module's own header may label or expose them differently.

The Aosong sheet describes the AHT21B sensor part. The module board (regulator, pull-ups, header order) is not covered by an official document, so check the labels printed on your module.

PinFunctionVoltageNotesSource
VCCSupply Voltage2.0 V to 5.5 VTable 5 lists the sensor's pins (VCC, SDA, GND, SCL)source
Table 5, section 3 (p.5)
SDASerial Data, BidirectionalVCC levelAosong sensor part: pull-up is included in the sensor's internal circuit per section 3.3; pull-up voltage must be VCCsource
Table 5, section 3.3 (p.5)
GNDPower ground0 Vsource
Table 5 (p.5)
SCLSerial Clock, BidirectionalVCC levelsource
Table 5 (p.5)

Build with it

Project ideas for the AHT21B temperature and humidity sensor. Each link opens Soldr with the prompt filled in; Soldr assigns the pins, checks power and shows how to wire every part.

Common mistakes

Not covered by the official source

Sources