added adc sleep sampling code