Updated the threshold to support a potentiometer, LED