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); } }