HC-SR501 with LDR attached to it.

You are right....The way the module works internally is to measure the voltage across the added LDR.Then the mcu takes care of enable/disable based on that voltage measure.

And I think your solution will make me in full control of the LDR readings.

Thank you for your input