I have been writing a program to read I2C sensors of many types. I couldn't find any code to read the SHT31-D sensor directly into the I2C bus of the Raspberry Pi, so I manged to write a very simple python script using the smbus module to read the sensor and put out humidity and temperature. The program needs the smbus module installed in Python. It came installed on my Raspbian image but the command pip install smbus should work, I think.
Published May 16, 2018
Comments
Please log in or sign up to comment.