How come the altitude calculation is wrong? Is my sensor broken?

No, your sensor is likely just fine. The altitude calculation depends on knowing the barometric pressure at sea level

If you do not set the correct sea level pressure for your location FOR THE CURRENT DAY it will not be able to calculate the altitude accurately

Barometric pressure at sea level changes daily based on the weather!

If I have long delays between reads, the first data read seems wrong?

The BMx280 'saves' the last reading in memory for you to query. Just read twice in a row and toss out the first reading!

This guide was first published on Jul 31, 2015. It was last updated on 2023-12-04 10:49:35 -0500.

This page (F.A.Q.) was last updated on Jul 24, 2015.

Text editor powered by tinymce.