Push notification if door open and then movement?

Is it possible to send a push notification if a multi senses the door has opened, and then after a pause the movement sensor senses movement?

I have a multi on a door, and a movement sensor inside of a rental apartment. I’d like to get a push notification which says “the guest arrived” if the door opens and then there’s movement, and another notification “the guest left” if the door opens but then there’s no movement. I’m guessing there would need to be a bit of a lag after the multi senses the door opening - maybe 20 seconds or so.

Is this possible? Thanks!