Single analog sensor input with time interval support