Double Sensors BME280 on Arduino Uno - Help with libraries

Hello,

I am pretty new and this is my first post.

I have two BME280 Sensor from Adafruit and want to make them work with an Arduino Uno.
There are other discussions about how two work with double sensor and I carefully searched for a solution.

I landed up on the Cactus.io library:

http://cactus.io/hookups/sensors/barometric/bme280/hookup-arduino-to-bme280-barometric-pressure-sensor

There are two versions, one with single sensor and one with double sensors, connected on I2C; in both cases the method bme.begin() is unable to detect the sensor (or the sensors).

I don't understend why:

  • the wiring is correct

  • I used the I2C scanner sketch and detected the two sensors with adresses 0x77 and 0x76

  • I tested them with the Sparkfun library and exemples and they work both (in this exemple, one BME280 uses SPI and the other I2C. Below the link:

This second solution works, exept the function for Relative Humidity, which gives always 0,00 %.

I am not a C expert and editing these librarie is beyound my capabilities.

I would like to have two sensors connected and get Temperature and RH mesurements from each. Whether usingbthe first or the second library, could anyone help me detecting what is wrong?

Many thanks!!

There must be something in the code you didn't post that isn't quite right.

I'm using this one: GitHub - finitespace/BME280: Provides an Arduino library for reading and interpreting Bosch BME280 data over I2C, SPI or Sw SPI..
How did you connect a 3.3V sensor with 3.3V SDA and SCL signals to a 5V Arduino board ?