Things used in this project

Code

Code snippet #2Plain 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 #3Plain 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

Photo
Nick Koumaris
6 projects • 82 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!
Contact

Comments