Two different problems, starting with simple temperature regulator

My advice would be it isnt going to work if you keep using delay().
Study this example

to see how to use millis()
then