Temperature control using relay.

sorry, how i will right down the if statement to check the condition ( if the cooler pin low )