Catch cases where ADC isn't ready.
reduce debug output
changed to range and fixed bug with for loop