The ADC potentiometer demo application demonstrates how to read the analog value from a hardware potentiometer via the ADC peripheral.