The Sparkfun SEN-13905 (BME280) sensor has an i2c address of 0x77 by default. Changing this to 0x76 is possible, but it requires cutting a trace and shorting out a couple pads. Rather than force people to do that, I thought it'd be nice to detect where the sensor is located and just use whatever address works.
Code has been tested using multiple different sensors with default IDs of 0x77 and 0x76.
The Sparkfun SEN-13905 (BME280) sensor has an i2c address of 0x77 by default. Changing this to 0x76 is possible, but it requires cutting a trace and shorting out a couple pads. Rather than force people to do that, I thought it'd be nice to detect where the sensor is located and just use whatever address works.
Code has been tested using multiple different sensors with default IDs of 0x77 and 0x76.