Anpassung Ein- Ausschalttemps
This commit is contained in:
parent
40f7e29a62
commit
b89f7590a8
@ -35,10 +35,12 @@ void loop() {
|
|||||||
delay(1000);
|
delay(1000);
|
||||||
|
|
||||||
// Fan an
|
// Fan an
|
||||||
if (sensorVal > 587) {
|
//if (sensorVal > 587) {
|
||||||
|
if (temp > 28.5) {
|
||||||
digitalWrite(PWM, HIGH);
|
digitalWrite(PWM, HIGH);
|
||||||
}
|
}
|
||||||
if (sensorVal < 500) {
|
//if (sensorVal < 500) {
|
||||||
|
if (temp < 27.5) {
|
||||||
digitalWrite(PWM, LOW);
|
digitalWrite(PWM, LOW);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user