Probably you have disable the ADCs but not the comparator? Both have to be disable.

And yes i'm talking about doing a A/D conversion... that's already built-in, free and far better than POT