Automatic room light control system

I have to turn on the light when someone enters the room and Olson on the basis of intensity of the natural light therefore I have used LDR