examples for analog and digital sensors; new reset features for analog

in the analog sensor, we recalibrate if sensor value is held at the
same level (other than the "atRest" value) for more than 8 seconds.