# Adafruit HTS221 - Temperature & Humidity Sensor

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/089/389/medium800/adafruit_products_4535_iso_ORIG_2020_03_edit.jpg?1584394035)

Humidity is the concentration of water vapor (water when it's a gas) in the air. Some places have more and make you feel soggy and hot like you're in a sauna. Other places don't have much, which makes it easier to get nose bleeds and static zaps. These are just a few examples of how humidity can have a noticeable impact on things that grow, like mushrooms or humans, as well as things that are sensitive to moisture, like delicate electronics, or humans.

![](https://cdn-learn.adafruit.com/assets/assets/000/089/386/medium800/adafruit_products_4535_quarter_ORIG_2020_03_edit.jpg?1584393769)

This is where the **HTS221 Temperature and Humidity Sensor** by ST comes in. With an HTS221, you can take measurements of the relative humidity which will tell you if the environment you're measuring is bone dry or sopping wet. The HTS221 can measure relative humidity from **0%-100% rH** with a sensitivity of 0.004% and 3.5% accuracy. It can also measure temperature from **-40 to 120** degrees C, with a resolution of 0.016°C with ±0.5 °C accuracy between 15 and +40 °C.

The HTS221 is an inexpensive humidity sensor which makes it great for every day measurement applications. Want to measure the humidity of your bathroom? Sure! How about your mushroom farm? Perfect!

![](https://cdn-learn.adafruit.com/assets/assets/000/089/385/medium800/adafruit_products_4535_ORIG_056_edit.jpg?1584393746)

The HTS221 lets you choose between a **3-wire SPI** or the ever-popular **I2C** which only needs two wires for data. If you're an I2C fan (who isn't?), we've included our handy dandy [SparkFun Qwiic](https://www.sparkfun.com/qwiic) compatible **[STEMMA QT](https://learn.adafruit.com/introducing-adafruit-stemma-qt)** connectors for the I2C bus **so you don't even need to solder!**

Since the HTS221 is a super small 2mm square, we've put it on a breakout board with level shifting and a power regulator, so it's easy to use on a breadboard with either a 5V logic level device like a Metro 328 or Arduino Uno, or with 3.3V logic level devices like a Feather M4 or Raspberry Pi of your choice.

Lastly, it wouldn't be an Adafruit breakout if it didn't come with [**libraries for Arduino and CircuitPython or Python**. We've also written **example code** and instructions on the pages that follow](https://learn.adafruit.com/adafruit-hts221-temperature-humidity-sensor), so you'll be ready to tell all your friends the approximate relative humidity level and temperature in only a few minutes.

- [Next Page](https://learn.adafruit.com/adafruit-hts221-temperature-humidity-sensor/pinouts.md)

## Primary Products

### Adafruit HTS221 - Temperature & Humidity Sensor Breakout Board

[Adafruit HTS221 - Temperature & Humidity Sensor Breakout Board](https://www.adafruit.com/product/4535)
Humidity is the concentration of water vapor (water when it's a gas) in the air. Some places have more and make you feel soggy and hot like you're in a sauna. Other places don't have much, which makes it easier to get nose bleeds and static zaps. These are just a few examples of...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4535)
[Related Guides to the Product](https://learn.adafruit.com/products/4535/guides)

## Related Guides

- [Adafruit SHT31-D Temperature & Humidity Sensor Breakout](https://learn.adafruit.com/adafruit-sht31-d-temperature-and-humidity-sensor-breakout.md)
- [Nunchuck Controlled Laser Cat Toy](https://learn.adafruit.com/nunchuck-controlled-laser-cat-toy.md)
- [Adafruit Data Logger Shield](https://learn.adafruit.com/adafruit-data-logger-shield.md)
- [Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi](https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi.md)
- [Adafruit STEMMA & STEMMA QT](https://learn.adafruit.com/introducing-adafruit-stemma-qt.md)
- [Adafruit 2.2" PiTFT HAT - 320x240 Display](https://learn.adafruit.com/adafruit-2-2-pitft-hat-320-240-primary-display-for-raspberry-pi.md)
- [Adafruit HUZZAH ESP8266 breakout](https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout.md)
- [Adafruit ESP32-S2 Feather](https://learn.adafruit.com/adafruit-esp32-s2-feather.md)
- [Adafruit TPS61169 Constant Current Boost Converter for LEDs](https://learn.adafruit.com/adafruit-tps61169-constant-current-boost-converter-for-leds.md)
- [Madison's NeoClock - A PIC + KiCAD + NeoPixel adventure](https://learn.adafruit.com/madisons-neoclock-a-pic-kicad-neopixel-adventure.md)
- [DS3231 Precision RTC FeatherWing](https://learn.adafruit.com/ds3231-precision-rtc-featherwing.md)
- [Adafruit INA260 Current + Voltage + Power Sensor Breakout](https://learn.adafruit.com/adafruit-ina260-current-voltage-power-sensor-breakout.md)
- [Adafruit Monochrome 1.12" 128x128 OLED Graphic Display](https://learn.adafruit.com/adafruit-monochrome-1-12-in-128x128-oled.md)
- [Introducing Bluefruit LE Micro](https://learn.adafruit.com/bluefruit-le-micro-atmega32u4-microcontroller-usb-bluetooth-le-in-one.md)
- [Adafruit USB Host BFF](https://learn.adafruit.com/adafruit-usb-host-bff.md)
