Working OK on a Pi5 using the example code from the GitHub repo of the debian package https://github.com/rm-hull/bme280
sudo apt install python3-bme280
Note the code just has import bme280
sudo apt install python3-bme280
Note the code just has import bme280
Code:
(env) pi@pi:~/myenv $ python bme.pybd1ad488-ac9c-4f00-bfec-0f89ec5033782025-08-08 21:08:28.813591+00:0023.5602907047607600.911352828983264.24204848282234compensated_reading(id=bd1ad488-ac9c-4f00-bfec-0f89ec503378, timestamp=2025-08-08 21:08:28.813591UTC, temp=23.560 °C, pressure=600.91 hPa, humidity=64.24 % rH)Statistics: Posted by neilgl — Fri Aug 08, 2025 9:15 pm