updated main app to use variable adc pins