Adafruit AHT20 Shield

Overview

The Adafruit AHT20 Temperature and Humidity Sensor Shield features an Aosong AHT20 Humidity and Temperature Sensor and two STEMMA QT connectors. It measures temperature and humidity.

Adafruit AHT20 Shield

Adafruit AHT20 Shield (Credit: Adafruit)

Requirements

This shield can be used with boards which provide an I2C connector, for example STEMMA QT or Qwiic connectors. The target board must define a zephyr_i2c node label. See Shields for more details.

Pin Assignments

Shield Pin

Function

SDA

AHT20 I2C SDA

SCL

AHT20 I2C SCL

See aosong,aht20 for details on possible devicetree settings.

Programming

Set --shield adafruit_aht20 when you invoke west build. For example when running the Generic digital humidity temperature sensor polling sample:

# From the root of the zephyr repository
west build -b adafruit_qt_py_rp2040 --shield adafruit_aht20 samples/sensor/dht_polling