Webcore multiple motion sensor detect direction of travel

New to Webcore, I have a long driveway, and I want to use multiple motion sensors to detect visitors direction of travel.
if visitor coming, sent SMS “visitor arrives”. and announce “someone is coming” on Sonos speaker.
and turn on the lights.
if visitor leaving, snet SMS “visitor leaving” and announce “someone is leaving” on Sonos Speaker.

please help.
thank you so much.

WebCore allows you to specify compound events joined by the “followed by” conjunction. It’s never worked well for me but might be worth a shot. So your statement would be “If motion sensor #1 changes to motion followed by motion sensor #2 changes to motion, say (and sms) someone is coming”. And vice versa.

Great, thank you Sir, I got it working!
thank you.