PIC24F: problem in AD1PCFG register
In most PIC micros, analog mode for a pin is turned on at power-on, i.e., you don't need to do anything to use a pin as analog input (given it is capable of it). Set PCFG to 1 and ADC will stop reading your pot.