BMP280 not working!!!!

Hi, I have been trying to make the BMP280 work using I2C interface and a Teensy 3.2. I am pretty sure the wiring is correct but nothing shows on the serial monitor. Is the sensor defect, wrong connection or other problemssss?

Thanks in advance

#include <Wire.h>
#include <SPI.h>
#include <Adafruit_BMP280.h>

Adafruit_BMP280 bmp; // use I2C interface
Adafruit_Sensor *bmp_temp = bmp.getTemperatureSensor();
Adafruit_Sensor *bmp_pressure = bmp.getPressureSensor();

void setup() {
  Serial.begin(9600);
  Serial.println(F("BMP280 Sensor event test"));

  if (!bmp.begin()) {
    Serial.println(F("Could not find a valid BMP280 sensor, check wiring!"));
    while (1) delay(10);
  }

  /* Default settings from datasheet. */
  bmp.setSampling(Adafruit_BMP280::MODE_NORMAL,     /* Operating Mode. */
                  Adafruit_BMP280::SAMPLING_X2,     /* Temp. oversampling */
                  Adafruit_BMP280::SAMPLING_X16,    /* Pressure oversampling */
                  Adafruit_BMP280::FILTER_X16,      /* Filtering. */
                  Adafruit_BMP280::STANDBY_MS_500); /* Standby time. */

  bmp_temp->printSensorDetails();
}

void loop() {
  sensors_event_t temp_event, pressure_event;
  bmp_temp->getEvent(&temp_event);
  bmp_pressure->getEvent(&pressure_event);
  
  Serial.print(F("Temperature = "));
  Serial.print(temp_event.temperature);
  Serial.println(" *C");

  Serial.print(F("Pressure = "));
  Serial.print(pressure_event.pressure);
  Serial.println(" hPa");

  Serial.println();
  delay(2000);
}

Have you tried an I2C scanner?

Hi coooooooolll,

Looks like you first need to solder pin headers on you Teensy 3.2, otherwise you'll never have reliable connections:

Thanks but i don't think it is about sodering. However, when using the i2c scanner, it shows all the address in order like all. From 0 to 0x7f. So what should I do? Also both of my teensy 3.2 r not able to print simple text in void setup but works perfectly fine in void loop. It just gives me a blank serial monitor.

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  Serial.println("Hello World!");
}

void loop() {
  // put your main code here, to run repeatedly:

}

Hi coooooooolll,

Thanks but i don't think it is about sodering.

I'm going to repectfully disagree with you on this point, it has everything to do with soldering. Until you solder both the Teensy 3.2 and the BMP280 breakout board with pin headers, your circuit will never work reliably.

Also, I noticed that your BMP280 breakout board doesn't have an on-board 3.3V voltage regulator and in images you provided you're powering it from the 5V pin on your Teensy. This could potentially damage the BMP280 device. It's necessary to power the breakout board from the Teensy's 3.3V pin, that's located two pins further down.

This is not soldered, this explains why its not working, trust us, this is not how you use these modules:

detail from your photo: