BME280 I2C Could not find a valid BME280 sensor, check wiring!

Hi,

I try to connect my bme280 sensor from aliexpress but it doesn't work :

I can see the sensor with address 0x76 when I do a I2C scan,
but when I do a bme.begin(0x76) it always says :
Could not find a valid BME280 sensor, check wiring!

Moreover, I found that it is because there is a error here is the adafruit lib :

// check if sensor, i.e. the chip ID is correct
if (read8(BME280_REGISTER_CHIPID) != 0x60) // ------> HERE, I READ 255 (0xFF)
return false;

Any idea ?

Don't hesitate with you need more info.

Coco

The AliExpress link you posted is for a BMP280 not a BME280. Try the Adafruit BMP280 library instead and let us know.

Also make sure you connect this sensor to 3.3V Vcc, and 3.3V I2C levels. Connecting it to 5V signals may damage it; connecting it to 5V Vcc will damage it.

I don't see level shifter or regulator on board so this breakout is not suitable for 5V.

Cocorico:
Moreover, I found that it is because there is a error here is the adafruit lib :

// check if sensor, i.e. the chip ID is correct
if (read8(BME280_REGISTER_CHIPID) != 0x60) // ------> HERE, I READ 255 (0xFF)
return false;

Why do you think that is an error in the library, it worked for me recently ?

Well, that's true. But I just tried with the BMP280 lib. Still doesn't work...

Well, time to ask yourself, "what am I doing wrong here"? Because with the copious amount if information provided by you to this forum, you're the only one that could possibly answer that.

And besides, in about 99.9% of the cases the error is with you, not with the software library. I may underestimate that number a bit.

Draw a picture of how you have the sensor wired up to your arduino and tell us what arduino your using.

Don't hesitate with you need more info.

Don't hesitate to read "How to use this forum", so you will have some idea what info you should have provided.