The LCD is blank after it restarts, and the arduino triggers the "heat" relay because the temperature is 0 (zero)
I'm sure I'm missing something simple, because the DHT11 outputs floats, or something... I'm too new to this language to know what I'm missing. Any help will be greatly appreciated.
Full sketch;
(I tried to paste it in code blocks but it's too long for the forum)
You probably need to post all of your code, as just posting one function that only prints the temperature if its not printed it in the last 2000ms is not what 99% of your project appears to do.
What do you see from the Serial.println() statement?
Not sure it matters, but you are printing a second reading of the sensor, not the value you capture in temp.
I guess this was just a test version of the code, because you have commented out the assignment to the global variable currentTemp and temp is a local variable in the function.