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