A python module to interface with the LD line of pressure sensors from Keller. Tested on Raspberry Pi 3 with Raspbian.
The python SMBus library must be installed.
sudo apt-get install python-smbus
from kellerLD import KellerLD sensor = KellerLD()
Initialize the sensor. This needs to be called before using any other methods.
Returns true if the sensor was successfully initialized, false otherwise.
Read the sensor and update the pressure and temperature.
Returns True if read was successful, False otherwise.
Get the most recent pressure measurement.
Returns the most recent pressure in bar. Call read() to update.
Get the most recent temperature measurement.
Returns the most recent temperature in degrees Centigrade. Call read() to update.