# BME280 Python

**URL:** <https://community.sparkfun.com/t/bme280-python/43417>\
**Category:** Environmental\
**Created:** [January 31, 2022, 6:23am UTC](https://community.sparkfun.com/t/bme280-python/43417 "2022-01-31T06:23:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tech-mech](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@tech-mech](https://community.sparkfun.com/u/tech-mech)\
**Post date:** [January 31, 2022, 6:23am UTC](https://community.sparkfun.com/t/bme280-python/43417/1 "2022-01-31T06:23:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rpiloverbd](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rpiloverbd](https://community.sparkfun.com/u/rpiloverbd)\
**Post date:** [January 31, 2022, 1:46pm UTC](https://community.sparkfun.com/t/bme280-python/43417/2 "2022-01-31T13:46:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rogerayotte](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@rogerayotte](https://community.sparkfun.com/u/rogerayotte)\
**Post date:** [November 15, 2022, 4:46pm UTC](https://community.sparkfun.com/t/bme280-python/43417/3 "2022-11-15T16:46:33Z")

</div>

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
