Threshold Library
The threshold library implements a threshold for ON/OFF control with Arduino. It is possible to use a single or double-set setpoint.