LEDs as sensors, newbie needs help!

Bang!

Yes I think a photo transistor would be much easier to use, there is not all that software faffing about with charging and timing the discharging rate.