Hi Evaristo. Firstly, I want to clarify I'm understanding your request. Is the scenario:
If the following all occur within 5 minutes of sunset:
- Door sensor 1 is open
- PIR detects motion
- Door sensor 2 is open
Can you please confirm that's what you're trying to achieve? Also, what manufacturer makes the door sensors and motion detector?