ADC routine update to use intrrupts