ADC Noise Reduction code please

Thanks Coding Badly. The thread you've linked to is too long and complex for a noob like me. Where is the analog pin to be read defined? Where is the call made to read it with the ADC?