Stu,

as Alain already mentioned, it's all in the Manual.

POT is a bit of a pain, does your PIC have a spare ADC?

if yes, wire the LDR with an additional resistor as voltage divider and use ADCIN