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 May 04, 2022.

This page (CircuitPython) was last updated on May 24, 2022.

Text editor powered by tinymce.