The SHT31 is part of a family of highly accurate temperature and humidity sensors developed by Sensirion AG.
On the Raspberry Pi, you first need to enable the I2C bus:
sudo raspi-config nonint do_i2c 0
Alternatively, you can execute sudo raspi-config
and enable the I2C bus from
the configuration UI.
You can download the most recent version of the library from the
Releases section and
install it using pip
:
pip install python-sht31-0.1.1.tar.gz