Reading analog input from sensors