This commit is contained in:
Alexander 2024-07-07 16:45:32 -04:00
parent c16541a039
commit 2832522cca

View File

@ -3,8 +3,8 @@
#include <WiFiClientSecure.h>
//#define BMP280
#define BME280
#define BMP280
//#define BME280
#ifdef BME280
#include <Adafruit_BME280.h>
@ -78,6 +78,16 @@ void setup() {
else {
sensors_values.pressure = bmp.readPressure() / 100.0F;
sensors_values.temperature = bmp.readTemperature();
Serial.println("All values were measured.");
Serial.print("Temperature: ");
Serial.print(sensors_values.temperature);
Serial.println();
Serial.print("Pressure: ");
Serial.print(sensors_values.pressure);
Serial.println();
Serial.print("Humidity: ");
Serial.print(sensors_values.humidity);
Serial.println();
}
#endif
}