Implementation code for Humidity, test and sample ADC