Uni_man:
dxw00d:
You are Serial.printing the value of tempc. Do the results look right?Add some debugging prints to the fan speed if statements to see which parts are being executed.
yes temperature measurements are right, thanks you
What about debugging prints to trace the path through the code?