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