Turning on light when coming home - using smart lock, door sensor, motion sensor etc

I do have 2 motion sensors… Can you give an example?

Why do you need two? I would have thought one pointing at the door from inside would be enough. So if there is no motion, then opening door will turn on the light.