What is a BME280 sensor ?
The BME280 is an integrated environmental digital sensor designed by Bosch Sensortec.
It simultaneously measures temperature, humidity, and barometric pressure, providing a reliable estimate of altitude and local atmospheric conditions.
It is one of the most widely used sensors in IoT and weather applications, thanks to its small size, low power consumption, and stability over several years.
Operating principle
The BME280 integrates three sensors:
- a MEMS pressure sensor (piezoresistive),
- a capacitive humidity sensor,
- and an integrated thermal sensor for compensation.
The raw data is digitized by a 20-bit ADC and then corrected using internal calibration coefficients stored in EEPROM.
Standard Bosch equations (simplified):
P = f(raw_p, raw_t)
T = f(raw_t)
RH = f(raw_h, T)
💡 The exact formulas are provided in the Bosch documentation and are based on 6 to 9 calibration coefficients.
Typical example of measurement
| Parameter |
Gross value (hex) | Calculated value |
Temperature |
0x6A90 | 24,8 °C |
| Humidity | 0x5E20 | 46,5 % RH |
Pressure | 0x8A2C0 | 1013,2 hPa |
🧮 Pressure can be converted into altitude:
Altitude (m) = 44330 × (1 − (P / 1013,25)^0,1903)
Principle diagram (I2C connection)
+3.3V │ [BME280] │ SDA ─────────┐ │ SCL ─────────┤── [I²C Microcontroller] │ GND │ │ CSB / SDO ───┘ (config address or SPI)
💡 I²C Address: 0x76 if SDO=GND / 0x77 if SDO=VCC.
Application areas
🌤️ Connected weather stations and IoT
🚁 Drones (altimeter / air compensation)
⌚ Smartwatches and fitness trackers
🏠 Air conditioning and home automation systems
🧠 Industrial environmental monitoring