diff --git a/ESPtermostat.ino b/ESPtermostat.ino index c77197c..7eb014b 100644 --- a/ESPtermostat.ino +++ b/ESPtermostat.ino @@ -109,7 +109,7 @@ void notFound(AsyncWebServerRequest *request) { void readSensor() { // read the actual temperature after it's been converted - temperature = sensor.getTempCByIndex(0); + temperature = sensor.getTempCByIndex(0) + CORRECTION; // do what you need with the temperature here metrics = "temp "; metrics += temperature; diff --git a/config.h.example b/config.h.example index d42696e..ad53426 100644 --- a/config.h.example +++ b/config.h.example @@ -4,3 +4,4 @@ #define DS18B20_PIN 0 #define RELAY_PIN 2 #define METRICS_EXPORT 1 +#define CORRECTION 0