Directional door sensor

And Paul, @zenofmud, just published a similar solution, in that case for a driveway but it could eventually be used as a base?