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.
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.