#9 #15 improved logic and validation of temp variable and setpoint variable implementation.