AnalogKid,
Hmm, are you a Rush fan ? 🙂
Ok, that was my mistake, it is pin 31 that is the 5v line. I was using pin 31 but when I made the post I was doing it from memory.
Lets keep this simple, only consider the photocell. The others were examples and any issues I may have with them, well Ill cross that bridge when I come to it. I can think of lots of things that I would need to read the resistance on.
What I am trying to do is to measure the resistance across a photocell in RSE mode. AI0 would be (PhotoCell) pin2 to ground (pin1) with a lead to the 5v line pin31.