Comparison

BME280 vs BMP280

Two Bosch sensors with identical pinouts but different features.

The BME280 and BMP280 both come from Bosch Sensortec and are usually sold on the same small breakout boards. The six-pin header is identical: VCC, GND, SCL, SDA, CSB and SDO. Both support I2C and SPI, and both use I2C address 0x76 when SDO is tied to ground and 0x77 when SDO is tied to VCC. Electrically, the modules are therefore direct replacements for each other.

The difference is on the inside: the BMP280 measures air pressure and temperature, the BME280 additionally measures relative humidity. Because both boards look the same, BMP280 modules are regularly sold as BME280. You can tell them apart reliably through the chip ID register 0xD0: the BMP280 reports 0x58, the BME280 0x60. Many libraries print exactly this value when they cannot find the sensor. The package also helps: the BME280 is square (2.5 × 2.5 mm), the BMP280 rectangular (2.0 × 2.5 mm).

On the software side you need the library that matches the chip, for example Adafruit_BME280 or Adafruit_BMP280. The table below confirms from the pinout data that all six pins are assigned the same way.

Pin-compatible

Same package and every pin has the same function. Always check voltage, current and timing in the datasheet.

Overview from the pinout data

PropertyBME280 Environmental Sensor ModuleBMP280 Digital Barometric Pressure Sensor
ManufacturerBosch SensortecBosch Sensortec
TypeSensorChip
Compared pinout6-Pin I2C / SPI Breakout HeaderBreakout Module (6-Pin Header)
Pins66
Supply pinsVCCVCC
Ground pins11
InterfacesI2C, SPII2C, SPI

Interface pins

I2CBME280 Environmental Sensor ModuleBMP280 Digital Barometric Pressure Sensor
SDA4 · SDA4 · SDA
SCL3 · SCL3 · SCL
SPIBME280 Environmental Sensor ModuleBMP280 Digital Barometric Pressure Sensor
MOSI / COPI4 · SDA4 · SDA
MISO / CIPO6 · SDO6 · SDO
SCK3 · SCL3 · SCL
CS / SS5 · CSB–

Pin number · pin name. "+n" = further pins with the same function.

Pin by pin

6 of 6 pins have the same function at the same position.

PinBME280 Environmental Sensor ModuleBMP280 Digital Barometric Pressure Sensor
1VCCVCCsame
2GNDGNDsame
3SCLSCLsame
4SDASDAsame
5CSBCSBsame
6SDOSDOsame

Verdict

If you need humidity, you have to use the BME280 and check the chip ID when buying. For pure pressure and altitude measurement, the cheaper BMP280 is enough.