I have two sensors to control one rele.
One for volt and one for temperature.
When the temperature (Vout) exceed the limit (P3) turn on the rele
and if the temperature is below the limit turn of the rele.
I want now , if the volt (value2) exceed the limit (P5) turn on the rele
and stay on for forever, but i don't know how


Code:
    If Vout >= P3 then                'Temp
        PORTA.0=1
        Pause 1000
            else
        PORTA.0=0
    endif
    		            
    If value2 >= P5 then  PORTA.0=1    'Volt
P3 and P5 is the limit