State change detection with analog input?