sunlight sensor

adwsystems:
I will need to detect Sun, Shade, and Dark.

If you just need that, try to connect a plain LED directly to an analog input, without anything else. :grin:

LEDs are reversible, they generate up to 1,5V in plain sun, depending on model/color.