User Manual

Python and CircuitPython
It's easy to use the LPS35HW sensor with Python and CircuitPython, and the Adafruit CircuitPython
LPS35HW (https://adafru.it/ERZ) module. This module allows you to easily write Python code that reads the pressure
and temperature from the sensor.
You can use this sensor with any CircuitPython microcontroller board or with a computer that has GPIO and Python
thanks to Adafruit_Blinka, our CircuitPython-for-Python compatibility library (https://adafru.it/BSN).
CircuitPython Microcontroller Wiring
First wire up a LPS35HW to your board exactly for an I2C connection as shown on the previous pages for Arduino.
Here's an example of wiring a Feather M4 to the sensor with I2C:
Board 3V to sensor VIN
Board GND to sensor GND
Board SCL to sensor SCK
Board SDA to sensor SDI
Python Computer Wiring
Since there's
dozens
of Linux computers/boards you can use we will show wiring for Raspberry Pi. For other platforms,
please visit the guide for CircuitPython on Linux to see whether your platform is supported (https://adafru.it/BSN).
Here's the Raspberry Pi wired with I2C:
Pi 3V3 to sensor VIN
Pi GND to sensor GND
Pi SCL to sensor SCK
Pi SDA to sensor SDI
CircuitPython Installation of LPS35HW Library
Next you'll need to install the Adafruit CircuitPython LPS35HW (https://adafru.it/ERZ) library on your CircuitPython
board.
First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle (https://adafru.it/zdx). Our introduction guide has a great page on
how to install the library bundle (https://adafru.it/ABU) for both express and non-express boards.
© Adafruit Industries https://learn.adafruit.com/lps35hw-water-resistant-pressure-sensor Page 12 of 18