bme280 python
Version 1.0.0
Suitable for measuring ambient temperature, barometric pressure, and humidity, the BME280 is a great indoor environmental sensor.
You must enable:
sudo raspi-config nonint do_i2c 0You can optionally run sudo raspi-config or the graphical Raspberry Pi Configuration UI to enable interfaces.
Stable library from PyPi, the smbus library is also needed:
python3 -m pip install pimoroni-bme280Latest/development library from GitHub:
git clone https://github.com/pimoroni/bme280-pythoncd bme280-pythonsudo ./install.sh