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