Relais and Temperture

Hi.

That can't be your entire code, you need to post all for someone else to find mistakes.

If your question is about how to prepare, you'd do that in the function void.setup().
There you can preset a defined value before it is actually read by the loop function.

Hope that answers your question.
If not, please post your entire sketch.