A couple of things:
You need to set up your chip to have analog inputs, justification
and Vref by setting the bits in ADCON1
The A/D input range is basically 0 to Vref (which will give you counts
from 0 to 1023).
Your diodes will probably not produce enough output voltage to
be usable without first being amplified by an op-amp.




Bookmarks