From b89f7590a8a93f3ec78352dc6a626a4fdfea6d26 Mon Sep 17 00:00:00 2001 From: ManuelW Date: Thu, 10 May 2018 19:21:25 +0200 Subject: [PATCH] Anpassung Ein- Ausschalttemps --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 66b395c..7a5516c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,10 +35,12 @@ void loop() { delay(1000); // Fan an - if (sensorVal > 587) { + //if (sensorVal > 587) { + if (temp > 28.5) { digitalWrite(PWM, HIGH); } - if (sensorVal < 500) { + //if (sensorVal < 500) { + if (temp < 27.5) { digitalWrite(PWM, LOW); } }