HC-SR501 with LDR attached to it.

It doesn't sound like you're using the module the way you should.

Just get another LDR, and wire it up the proper way for your Arduino to read, and let the module take care of its own LDR.