Automatic room light control system

I have to turn on the light of the motion detected on the room and the natural light is not available.if natural light is available then light should not be turn on. Therefore to check whether the natural light is available or not I have used LDR and to detect motion I have used PIR sensor.