BME280 Python

I am testing my Qwiic sensor that have Python driver modules and the one for the BME280 is giving strange results. So I changed to Arduino for testing using a BlackBoard. The Sketch was the basic with the addition of checking and setting the reference pressure. I live a few mile from PDX and up hill from it and the river. The Arduino Sketch returned about what I expected. Using Python on a Raspberry Pi 4B2 I got a negative altitude. This make the sensor useless. Is this a know problem? Is it getting worked on?

Dale

Hi, which library are you using? I think you’d better try the pimoroni library for BM280. https://github.com/pimoroni/bme280-python

In addition to altitude, does the program allow for reporting the absolute pressure? The altitude from BME280 is usually calculated from a reference pressure at sea level for the time at which you read the pressure. This only needs to be done once or a few times, the offset should be fairly constant.

Roger