# How to correct BME280 pressure data?

**URL:** https://forum.sensor.community/t/how-to-correct-bme280-pressure-data/224
**Category:** Uncategorized
**Created:** [January 15, 2021, 10:40pm UTC](https://forum.sensor.community/t/how-to-correct-bme280-pressure-data/224 "2021-01-15T22:40:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dwg](https://forum.sensor.community/user_avatar/forum.sensor.community/dwg/32/77_2.png) [@dwg](https://forum.sensor.community/u/dwg)
#### Post date: [January 15, 2021, 10:40pm UTC](https://forum.sensor.community/t/how-to-correct-bme280-pressure-data/224/1 "2021-01-15T22:40:34Z")

</div>

Hello,  
can anyone tell me, how the pressure data from BME280 is corrected (to sea level)?  
Which formulae are used for this?  
Currently I get a raw data of e.g. 978.6 milllibars which is displayed in the map with a value of 1028.1 ( altitude is 393m)  
Thanks Dieter

---

<div class="post-metadata">

### Author: ![ricki-z](https://forum.sensor.community/user_avatar/forum.sensor.community/ricki-z/32/215_2.png) [@ricki-z](https://forum.sensor.community/u/ricki-z)
#### Post date: [January 16, 2021, 3:47pm UTC](https://forum.sensor.community/t/how-to-correct-bme280-pressure-data/224/2 "2021-01-16T15:47:36Z")

</div>

We are using the following formula:  
 ![p0 = p(h) * (T(h)/(T(h)+0.0065*h))^(-5.255)](https://wikimedia.org/api/rest_v1/media/math/render/svg/fd59714b80e711266ced65a085fe303cb048e362)  
(Source: [Barometrische Höhenformel – Wikipedia](https://de.wikipedia.org/wiki/Barometrische_H%C3%B6henformel#Praxis))

This should be included in one of our next firmware versions for the values shown on displays or the page ‘actual values’. To the servers we will send the raw values.

---

<div class="post-metadata">

### Author: ![dwg](https://forum.sensor.community/user_avatar/forum.sensor.community/dwg/32/77_2.png) [@dwg](https://forum.sensor.community/u/dwg)
#### Post date: [January 18, 2021, 3:33pm UTC](https://forum.sensor.community/t/how-to-correct-bme280-pressure-data/224/3 "2021-01-18T15:33:19Z")

</div>

thank you, that’s it…
