Initializes ADC1 and reads a sample once counter has reached value in the main loop