How to interface LDR with microcontroller?
This is very simple:



Since both the voltage into the A/D input and the A/D's measuring range is relative to the PWR voltage, the PWR voltage cancels out.  The A/D pin voltage will be non-linear with light intensity.  Make R2 the value R1 has in the center of its range or where you want the most resolution.