Compare analog input