Help! Can't get i2c to cannect to my bmp280

I need to conect my bmp280 by i2c to the xiao esp32 c3 but i can’t get to begin my bmp280.
My code:
#include <Wire.h>

#include <SPI.h>

#include <Adafruit_Sensor.h>

#include <Adafruit_BMP280.h>

#define BMP_SCK 13

#define BMP_MISO 12

#define BMP_MOSI 11

#define BMP_CS 10

Adafruit_BMP280 bme; // I2C

//Adafruit_BMP280 bme(BMP_CS); // hardware SPI

//Adafruit_BMP280 bme(BMP_CS, BMP_MOSI, BMP_MISO, BMP_SCK);

void setup() {


Serial.println(F(“BMP280 test”));

if (!bme.begin()) {

Serial.println(“Could not find a valid BMP280 sensor, check wiring!”);

while (1);



void loop() {

Serial.print("Temperature = ");


Serial.println(" *C");

Serial.print("Pressure = ");


Serial.println(" Pa");

Serial.print("Approx altitude = ");

Serial.print(bme.readAltitude(1013.25)); // this should be adjusted to your local forcase

Serial.println(" m");




Hi Miguel_Anggelo_de_Alm,
I think the ADDRESS and CHIPID are the problem.
Please try the following four “bme.begin()” options.

  if (!bme.begin(0x76, 0x60)) {
  if (!bme.begin(0x77, 0x60)) {
  if (!bme.begin(0x76, 0x58)) {
  if (!bme.begin(0x77, 0x58)) {