HC-SR501 with LDR attached to it.

If you connect the LDR like you did, then the PIR chip will ofcourse disable it's output when it's light outside.
So you can't control anything with the Arduino anymore unless ist's dark outside.
Leo..