Nick Koumaris
Published © CC BY-NC

Arduino Easy Weather Station With BME280 Sensor

Dear friends welcome to another Arduino project tutorial! In this tutorial we are going to take a first look at the new BME280 sensor, a ...

BeginnerFull instructions provided1 hour39,701
Arduino Easy Weather Station With BME280 Sensor

Things used in this project

Story

Read more

Code

Code snippet #2

Plain text
void setup(void) {  lcd.begin(16, 2);
  lcd.print("Reading sensors");   bool status;
    
    // default settings
    status = bme.begin(0x76);  //The I2C address of the sensor I use is 0x76    if (!status) {
        Serial.println("Could not find a valid BME280 sensor, check wiring!");
        while (1);
    }
}

Code snippet #3

Plain text
delay(2000); getPressure();
 getHumidity();
 getTemperature();
 
 lcd.clear(); 
 //Printing Temperature
 String temperatureString = String(temperature,1);
 lcd.print("T:"); 
 lcd.print(temperatureString);
 lcd.print((char)223);
 lcd.print("C ");

Github

https://github.com/adafruit/Adafruit_BME280_Library

Github

https://github.com/adafruit/Adafruit_Sensor

Credits

Nick Koumaris

Nick Koumaris

13 projects • 303 followers
My name is Nick Koumaris and I am a software engineer from Sparta, Greece. I love building projects and share them with the world!

Comments