Advanced ADC reading for Arduino