allow analog input threshold to be defined via the interface