Maybe change Sensor_positioning so it allows both sensor addresses? inline constexpr uint8_t kBMI270Addr = 0x68; inline constexpr uint8_t kBMI270Addr = 0x69;