Again, the basic example from the library should work as is without any code changes. This is no different than what the BME280 primary guide has you do here:

With the bme280_simpletest.py example running, the output should look like this:

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:

Temperature: 19.3 C
Humidity: 46.9 %
Pressure: 1014.0 hPa
Altitude = -6.30 meters

Temperature: 19.3 C
Humidity: 46.8 %
Pressure: 1014.0 hPa
Altitude = -6.17 meters

This guide was first published on May 04, 2022. It was last updated on Mar 29, 2024.

This page (CircuitPython) was last updated on Mar 08, 2024.

Text editor powered by tinymce.