Adafruit HTS221 Shield

Overview

The Adafruit HTS221 Temperature and Humidity Sensor Shield features a ST Microelectronics HTS221 Humidity and Temperature Sensor and two STEMMA QT connectors. It measures temperature and humidity.

Adafruit HTS221 Shield

Adafruit HTS221 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

I2C SDA

SCL

I2C SCL

DRDY

Data ready output

CS

Keep at high level to use I2C mode

See st,hts221 for details on possible devicetree settings, for example if you are using the DRDY pin.

Programming

Set --shield adafruit_hts221 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_feather_scorpio_rp2040 --shield adafruit_hts221 samples/sensor/dht_polling
west flash