If temp>=setpoint then
high pin
else
Low Pin
endif