1.. _hts221:
2
3HTS221: Temperature and Humidity Monitor
4########################################
5
6Overview
7********
8This sample periodically reads temperature and humidity from the HTS221
9Temperature & Humidity Sensor and displays it on the console
10
11
12Requirements
13************
14
15This sample uses the HTS221 sensor controlled using the I2C interface.
16
17References
18**********
19
20 - HTS211: https://www.st.com/en/mems-and-sensors/hts221.html
21
22Building and Running
23********************
24
25 This project outputs sensor data to the console. It requires an HTS221
26 sensor, which is present on the disco_l475_iot1 board.
27
28.. zephyr-app-commands::
29   :zephyr-app: samples/sensor/hts221
30   :board: disco_l475_iot1
31   :goals: build
32   :compact:
33
34Sample Output
35=============
36
37 .. code-block:: console
38
39    Temperature:25.3 C
40    Relative Humidity:40%
41    Temperature:25.3 C
42    Relative Humidity:40%
43    Temperature:25.3 C
44    Relative Humidity:40%
45    Temperature:25.3 C
46    Relative Humidity:40%
47
48    <repeats endlessly every 2 seconds>
49