# BME280 sensor accuracy

**URL:** <https://forums.pimoroni.com/t/bme280-sensor-accuracy/22837>\
**Category:** Learning Resources\
**Created:** [August 30, 2023, 1:12pm UTC](https://forums.pimoroni.com/t/bme280-sensor-accuracy/22837 "2023-08-30T13:12:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LSTEW452](https://avatars.discourse-cdn.com/v4/letter/l/7c8e57/32.png) [@LSTEW452](https://forums.pimoroni.com/u/LSTEW452)\
**Post date:** [August 30, 2023, 1:12pm UTC](https://forums.pimoroni.com/t/bme280-sensor-accuracy/22837/1 "2023-08-30T13:12:19Z")

</div>

Here are my test results with the weather hat. I had to move the weather hat off the raspberry pi to reduce overheating. I attached the Weatherhat to Raspberry Pi GPIO pins with a cable. I noticed that the temperature was 8 degrees lower when first started. After two hours the BME280 sensor accuracy is 7 degrees lower then my professional weather. Please advise. Larry

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [August 30, 2023, 5:25pm UTC](https://forums.pimoroni.com/t/bme280-sensor-accuracy/22837/2 "2023-08-30T17:25:35Z")

</div>

Even the Pi Zero has an idle consumption of 100mA, that is 500mW. The cpu has a temperature of about 40°C doing nothing. So you will encounter heat creap.

Using a cable is the first step in the right direction. Even better, use a system that does not produce heat or operate in on/off mode. In addition, check the software. The Pimoroni libraries configure the BME280 sensor in a more than suboptimal way. They use “normal mode” while the datasheet recommends “forced mode” for weather monitoring.

I recently did a large scale sensor-test, see [GitHub - bablokb/sensor-test: Test of various temperature/humidity sensors](https://github.com/bablokb/sensor-test). While not being the best sensor around, the BME280 does perform according to it’s datasheet if operated correctly.

---

<div class="post-metadata">

**Author:** ![LSTEW452](https://avatars.discourse-cdn.com/v4/letter/l/7c8e57/32.png) [@LSTEW452](https://forums.pimoroni.com/u/LSTEW452)\
**Post date:** [August 31, 2023, 2:31pm UTC](https://forums.pimoroni.com/t/bme280-sensor-accuracy/22837/3 "2023-08-31T14:31:57Z")

</div>

> [@bablokb](#):
>
> Pimoroni libraries configure the BME280 sensor in a more than suboptimal way.

Which libraries do this? I would like to change this setting.

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [August 31, 2023, 2:59pm UTC](https://forums.pimoroni.com/t/bme280-sensor-accuracy/22837/4 "2023-08-31T14:59:15Z")

</div>

The bme280 libraries.

The strange thing is that you can expect higher values. But your problem seem to be far too low values, which is more peculiar (most people complain because of offsets in the other direction). Are the other values from the BME280 sensible? Humidity is of course related to temperature, but pressure is usually very exact (once you compensate for altitude) and comparable to what you get from internet weather services.
