HC-SR501 with LDR attached to it.

Well, not stopping you to use a MCU for this project. It's just that not every project that can be done with an MCU should be done with an MCU.