Connect one pin of LDR to 5v and another pin to A0 input.This is a Light sensor using LDR and Arduino, you can make it either Shadow detector or light detector ...
rookieelectronics.com