move phidget threshold to a config variable