Introduction

In this guide, we’re going to learn how to interface with the LPS22B Sensor — a built in sensor on the Arduino Nano BLE Sense.

Untitled

About the LPS22HB

This sensor measures barometric pressure and temperature. It can read

It operates over a temperature range extending from -40 °C to +85 °C

The datasheet can be found here: https://www.st.com/resource/en/datasheet/dm00140895.pdf

The LPS22HB is ultra compact — hint see how small it is above

We use the I2C protocol to talk to and get sensor readings from it. This a way of communicating with connected stuff from the built in sensors to things you might connect to your Arduino Board. The I2C protocol assigns everything on the communications relay an address (think of it as an ID that helps you specify what messages should go to it and what should go to other things).

Getting Started

  1. Open the Arduino IDE
  2. Choose Tools from the menu bar and then Manage Libraries
  3. Search for the LPS22HB Library