Comparison · Beginner · 3 min read
Barometric Pressure Sensors
BMP280, BMP390, MS5611 and Altitude
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Barometric pressure sensors measure air pressure, from which you can calculate altitude or track weather. The BMP280 is the standard cheap choice (about 1 hPa absolute accuracy), the BME280 adds humidity, the BMP390 is more accurate and less noisy, and the MS5611 is favoured for drones because it resolves a few centimetres of height. Use 3.3 V logic and I2C address 0x76 or 0x77.
Key specs at a glance
- BMP280
- 300 to 1100 hPa, ±1 hPa absolute, I2C 0x76/0x77 or SPI
- BME280
- Same pressure range plus humidity and temperature, I2C 0x76/0x77
- BMP390 / BMP388
- 300 to 1250 hPa, about ±0.5 hPa absolute, lower noise, I2C 0x76/0x77
- MS5611
- 10 to 1200 mbar, 24-bit, about 10 cm altitude resolution, I2C 0x76/0x77 or SPI
- Altitude change
- About 1 hPa per 8.3 m near sea level
- Logic
- 3.3 V chips; many breakouts add a regulator
Which sensor to pick
All of these give pressure and temperature. The differences are accuracy, noise and extra features.
| Sensor | Absolute accuracy | Extras | Best for |
|---|---|---|---|
| BMP180 | ±1 hPa | Old design | Legacy projects only |
| BMP280 | ±1 hPa | Cheap, widespread | Hobby weather stations, altitude demos |
| BME280 | ±1 hPa | Humidity, temperature | All-in-one weather node |
| BMP388 / BMP390 | About ±0.5 hPa | Lower noise, FIFO | Drones, indoor navigation, floor detection |
| MS5611 | ±1.5 mbar | 24-bit, very fine resolution | Variometers, flight controllers |
- BMP180
- Absolute accuracy:
- ±1 hPa
- Extras:
- Old design
- Best for:
- Legacy projects only
- BMP280
- Absolute accuracy:
- ±1 hPa
- Extras:
- Cheap, widespread
- Best for:
- Hobby weather stations, altitude demos
- BME280
- Absolute accuracy:
- ±1 hPa
- Extras:
- Humidity, temperature
- Best for:
- All-in-one weather node
- BMP388 / BMP390
- Absolute accuracy:
- About ±0.5 hPa
- Extras:
- Lower noise, FIFO
- Best for:
- Drones, indoor navigation, floor detection
- MS5611
- Absolute accuracy:
- ±1.5 mbar
- Extras:
- 24-bit, very fine resolution
- Best for:
- Variometers, flight controllers
From pressure to altitude
Pressure falls as you climb, so altitude is calculated from the difference to a reference pressure at sea level. The common formula is: altitude in metres = 44330 × (1 − (P / P0) ^ 0.1903), where P0 is the sea-level pressure (1013.25 hPa as a standard). Weather changes P0 from day to day, so for absolute height use the local sea-level pressure from a forecast. For relative height, such as floors in a building or a jump, set P0 to the reading at the start.
Quick test on Arduino
Install the Adafruit BMP280 library from the Library Manager and wire SDA and SCL to your board.
#include <Adafruit_BMP280.h>
Adafruit_BMP280 bmp; // I2C
void setup() {
Serial.begin(115200);
if (!bmp.begin(0x76)) { // try 0x77 if this fails
Serial.println("BMP280 not found");
while (1);
}
}
void loop() {
Serial.print(bmp.readPressure() / 100.0); // hPa
Serial.print(" hPa ");
Serial.print(bmp.readAltitude(1013.25)); // metres
Serial.println(" m");
delay(1000);
}Using pressure for weather
Rising pressure usually means settled weather; a steady fall of 1 to 2 hPa over three hours means unsettled weather, and a drop of 6 hPa or more in three hours often signals a storm. Log a reading every few minutes and compare across hours, not seconds.
Gotchas
If your "BME280" gives no humidity, it is probably a BMP280. Read the chip ID register: 0x60 is a BME280, 0x58 is a BMP280.
on the metal lid.
Warm air from regulators and LEDs skews temperature and pressure.
Some modules are 3.3 V only; check before connecting to a 5 V Arduino.
Common mistakes to avoid
- Treating the standard 1013.25 hPa as local sea-level pressure and expecting exact altitude.
- Buying a BMP280 expecting humidity readings.
- Covering the sensor vent with epoxy or tape.
- Mounting the sensor next to a hot regulator.
- Connecting a 3.3 V-only module to a 5 V I2C bus.
Frequently asked questions
BMP280 or BME280?
BME280 if you also need humidity. Otherwise they measure pressure the same way.
How accurate is altitude from a BMP280?
Relative changes are good to about 1 m. Absolute height can be off by tens of metres unless you set the correct sea-level pressure.
Which sensor is best for a drone?
The MS5611 or BMP390, thanks to their fine resolution and low noise.
What are the I2C addresses?
0x76 and 0x77, set by the SDO pin.
Can I use it indoors to find floors?
Yes. A change of about 0.4 hPa is roughly one floor.
Is the BMP180 still worth using?
Only for old projects. BMP280 or BMP390 are better and cost about the same.
Parts for this guide
Terms in this guide
Projects that use it
Put this into practice: 24 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- Bosch Sensortec BMP280, BME280, BMP390 datasheets
- TE Connectivity MS5611-01BA03 datasheet
- International Standard Atmosphere (ISA) model
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




