Scan the bus. The address is 0x76 or 0x77, and the board may be a BMP280 with no humidity.
What the message means
The two addresses depend on the SDO pin. Also, cheap modules sold as BME280 are often BMP280, which has no humidity sensor and a different chip ID.
Fix it in this order
- Run an I2C scanner and note the address.
- Pass that address to begin().
- Read the chip ID. A value of 0x60 is a BME280 and 0x58 is a BMP280.
- Use the library that matches the real chip.
- Check the supply voltage and the SDA and SCL wiring.
- Allow a moment after power-up before the first read.
Why it happens
These sensors answer at address 0x76 or 0x77, depending on how the SDO pin is wired. Many example sketches assume one address and your board uses the other. Some boards sold as BME280 are actually BMP280, which has no humidity sensor.
Run an I2C scanner to see the address, pass it to begin(), for example bme.begin(0x76), and check the chip ID if humidity reads zero.
If you see this, do this
| You see | Do this |
|---|---|
| Not found at 0x76 | Try 0x77. |
| Humidity reads 0 or nan | The chip is a BMP280. |
Related
Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.
Why this happens
Both chips are made by Bosch and share a register layout. The register at 0xD0 holds the chip ID: 0x60 for the BME280 and 0x58 for the BMP280 (some early BMP280 samples read 0x56 or 0x57). The I2C address depends on the SDO pin, which selects 0x76 when low and 0x77 when high. The CSB pin must be high to use I2C. An unconnected SDO pin can float, and the address becomes unstable.
Many cheap listings say BME280 but ship BMP280 chips, which measure pressure and temperature only. Humidity then reads zero, or the Adafruit library may refuse to start depending on its checks.
How to confirm the cause
- Run an I2C scanner and note whether 0x76 or 0x77 appears.
- Read the chip ID register. If it says 0x58, the board is a BMP280 whatever the label says.
- Check the wires for SDA and SCL and the supply voltage on the module; use 3.3 V if the board has no regulator.
- Check that the SDO pad on the board is tied to ground or VCC.
Worked example
This reads the chip ID without any sensor library, so you see what the board is.
#include <Wire.h>
uint8_t readId(uint8_t addr) {
Wire.beginTransmission(addr);
Wire.write(0xD0); // chip ID register
Wire.endTransmission();
Wire.requestFrom(addr, (uint8_t)1);
return Wire.available() ? Wire.read() : 0;
}
void setup() {
Serial.begin(115200);
Wire.begin();
Serial.println(readId(0x76), HEX); // 60 = BME280, 58 = BMP280
}
void loop() {}Common mistakes
- Using bme.begin() with no argument; Adafruit’s default is 0x77.
- Expecting humidity from a BMP280.
- Powering a 3.3 V module from 5 V.
- Setting the wrong Wire pins on an ESP32 board.
If this did not fix it
- Check pull-up resistors on SDA and SCL.
- Check for swapped SDA and SCL.
- Check another I2C device that uses the same address.
- Check that a long wire is not causing errors.