Added threshold sensor
Using resitor for analog threshold setting