check analog input