AHTx0 Temperature and Humidity Sensor
Overview
A sensor capable of measuring temperature (℃) and relative humidity (%) using I2C interface.

Compatible Modules
- AHT10
- AHT20
Specifications (AHT20)
- Power supply voltage: 2.0-5.5V DC
- Measurement range (humidity) : 0~100%RH
- Measuring range (temperature):-40~+85℃
- Humidity accuracy:±2%RH(25℃)
- Temperature accuracy:±0.3℃
- Resolution: Temperature: 0.01℃ Humidity: 0.024%RH
- Output signal: I2C signal
Supported GPIO
- Raspberry Pi 0~4
- Raspberry Pi 5
- BeagleBone Black/Green
- Jetson Nano
- FT232H, FT2232H, FT4232H
- MCP2221
Commands
[READ_DATA]
Reads temperature and humidity from the sensor.
Item | Type | Description |
---|---|---|
Temperature(℃) | READ | Measured temperature. |
Humidity(%) | READ | Measured relative humidity. |
Example
Objective
Read temperature and humidity from the AHT20 sensor and display them on dashboard gauge widgets.
Parts
Part | Quantity |
---|---|
Raspberry Pi 4 * | 1 |
AHT20 | 1 |
* Other compatible hardware may be used. See Supported GPIO for details.
Wiring
AHT20 | GPIO |
---|---|
VCC | 3.3V |
GND | GND |
SCL | 3 (I2C1 SCL) |
SDA | 2 (I2C1 SDA) |

Project Link