fixed inner ADC sample loop that smooths values for each cycle