diff --git a/src/main.cpp b/src/main.cpp index d86d306..32cef1f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -280,9 +280,9 @@ void transmitStatus() { StaticJsonBuffer<200> jsonBuffer; JsonObject& root = jsonBuffer.createObject(); if (bme280.valid) { - root["temperature"] = bme280.readTemperature(); - root["humidity"] = bme280.readHumidity(); - root["pressure"] = bme280.readPressure(); + root["temperature"] = temp; + root["humidity"] = humi; + root["pressure"] = pres; } else { //root["temperature"] = internal_temp; }