On your last program, you still have in the room temperature a 3 digit value, say 250 and compare it with the Tmax that is 30.


If temperature is 250 and TMax is 30 what is the result? Portb.6 always set as you requested.
for a Temperature of 30 deg the temperature var would equal 3000 , what 3 digit number are we talking about, the display is to two
decimal points the comparison must be on equal terms
Code:
If temperature > (Tmax*100) then
rele=1
else
rele=0
Endif

or

Code:
If (temperature/100) > Tmax then
rele=1
else
rele=0
Endif