Have looked all the posts regarding this and still can't solve it.
Have run a sketch to scan for I2C , result was 0x76.
This sketch produces the error:-
#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.begin(9600);
Serial.println(F("BMP280 test"));
while (!bme.begin(0x76)) {
Serial.println("Could not find a valid BMP280 sensor, check wiring!");
delay(1000);
}
}
void loop() {
Serial.print("Temperature = ");
Serial.print(bme.readTemperature());
Serial.println(" *C");
Serial.print("Pressure = ");
Serial.print(bme.readPressure());
Serial.println(" Pa");
Serial.print("Approx altitude = ");
Serial.print(bme.readAltitude(1013.25)); // this should be adjusted to your local forcase
Serial.println(" m");
Serial.println();
delay(2000);
}
And this is my project:-

The sensor was described as KLOVA GY-BME280-3.3 GY-BMP280-3.3.
I'm fairly new to this but have had a bmp180 running for months now.
Any advice would be appreciated.
I’m a bit confused ; the link for your sensor points to a device that runs on I2C bus and you found the address with an I2C scan , but your sketch is for SPI.
Can we see a picture of the actual sensor and how you have it wired
From the link that hammy provided, we read -- Note that this temperature measurement is used internally to calibrate the pressure and humidity sensors. Because the sensor self-heats, the measured temperature is usually slightly higher than the actual temperature. If this is critical to your project, compare the measured temperature to the actual temperature and apply an offset if necessary.
You need to mount the sensor in /on something to stop self heating , and you need to know if your reference for temperature is correct and measuring the same point .