Needed: more efficient code, need to learn about functions i think!.....help!

Thanks rob for the input,

I'll try to implement that into the code as I learn more. The 4 second delay is for testing purposes, once I have everything dialed in I would raise it to about 45 seconds. This is done so the heat exchanger in the furnace heats up before the fan turns on( as to not blow cold air), and after the heat call is satisfied the fan stays for a minute or so to cool the heat exchanger.