SHT31 is the next generation of Sensirion’s temperature and humidity sensors. The SHT31 has increased intelligence, reliability and improved accuracy specifications compared to its predecessor. This Device is available from www.ncd.io
[SKU: SHT31]
(https://store.ncd.io/product/sht31-humidity-and-temperature-sensor-%C2%B12rh-%C2%B10-3c-i2c-mini-module/) This Sample code can be used with Raspberry Pi.
Hardware needed to interface SHT31 humidity and temperature sensor With Raspberry Pi :
Download and install smbus library on Raspberry pi. Steps to install smbus are provided at:
https://pypi.python.org/pypi/smbus-cffi/0.5.1
Download (or git pull) the code in pi. Run the program.
$> python SHT31.py
The lib is a sample library, you will need to calibrate the sensor according to your application requirement.