diff --git a/code/espurna/ds18b20.ino b/code/espurna/ds18b20.ino index 648a422b..e0164916 100644 --- a/code/espurna/ds18b20.ino +++ b/code/espurna/ds18b20.ino @@ -71,7 +71,7 @@ void dsLoop() { double t = (tmpUnits == TMP_CELSIUS) ? ds18b20.getTempCByIndex(0) : ds18b20.getTempFByIndex(0); // Check if readings are valid - if (isnan(t)) { + if (isnan(t) || t < -50) { DEBUG_MSG_P(PSTR("[DS18B20] Error reading sensor\n"));