It looks to me that your logic is basically this:
LOOP
Gather temperature data
Take action on relays based on data
Output information
GOTOLOOP
In that last piece of code, setup() is a mess. Missing braces again and some redundancy. To keep braces organised I always immediately type my closing brace when I type the open brace. Then I put my code inside them. I also use the IDE's format feature which will fail with unmatched braces and brackets.