1.. zephyr:code-sample:: lps22hh
2   :name: LPS22HH Temperature and Pressure Sensor
3   :relevant-api: sensor_interface
4
5   Get pressure and temperature data from an LPS22HH sensor (polling & trigger mode).
6
7Overview
8********
9This sample periodically reads pressure from the LPS22HH MEMS pressure
10sensor and displays it on the console.
11
12
13Requirements
14************
15
16This sample uses the LPS22HH sensor controlled using the I2C interface.
17
18References
19**********
20
21- LPS22HH: https://www.st.com/en/mems-and-sensors/lps22hh.html
22
23Building and Running
24********************
25
26This project outputs sensor data to the console. It requires an LPS22HH
27sensor, which is present on the X-NUCLEO-IKS01A3 shield.
28
29.. zephyr-app-commands::
30   :zephyr-app: samples/sensor/lps22hh
31   :board: nrf52dk/nrf52832
32   :shield: x_nucleo_iks01a3
33   :goals: build
34   :compact:
35
36Sample Output
37=============
38
39.. code-block:: console
40
41   Configured for triggered collection at 1 Hz
42   Observation: 1
43   Pressure: 97.474 kPa
44   Temperature: 22.19 C
45   Observation: 2
46   Pressure: 97.466 kPa
47   Temperature: 22.21 C
48   Observation: 3
49   Pressure: 97.473 kPa
50   Temperature: 22.21 C
51   Observation: 4
52   Pressure: 97.455 kPa
53   Temperature: 22.21 C
54
55   <repeats endlessly every second>
56