Temperature control using relay.

i corrected .it works for the first time of event but the interval is becoming higher and higher after each occurring of the condition( temperature is >= 30 && cooler pin is =off)