Update HumiditySensor.ino
This commit is contained in:
@@ -81,7 +81,7 @@ void loop()
|
|||||||
temperature = dht.toFahrenheit(temperature);
|
temperature = dht.toFahrenheit(temperature);
|
||||||
}
|
}
|
||||||
send(msgTemp.set(temperature, 1));
|
send(msgTemp.set(temperature, 1));
|
||||||
#if MY_DEBUG
|
#ifdef MY_DEBUG
|
||||||
Serial.print("T: ");
|
Serial.print("T: ");
|
||||||
Serial.println(temperature);
|
Serial.println(temperature);
|
||||||
#endif
|
#endif
|
||||||
@@ -94,7 +94,7 @@ void loop()
|
|||||||
} else if (humidity != lastHum) {
|
} else if (humidity != lastHum) {
|
||||||
lastHum = humidity;
|
lastHum = humidity;
|
||||||
send(msgHum.set(humidity, 1));
|
send(msgHum.set(humidity, 1));
|
||||||
#if MY_DEBUG
|
#ifdef MY_DEBUG
|
||||||
Serial.print("H: ");
|
Serial.print("H: ");
|
||||||
Serial.println(humidity);
|
Serial.println(humidity);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user