Polls and logs an analog input every second