added adc exception catching
added adc exception catching