Threshold returns true when input is above or below a setpoint with configurable deadband. The deadband is only applied when the output is going from true to false.