Head to Settings > Automations & scenes and click “Create automation” to get started. Find your sensor and use the “started detecting motion” trigger as your “When” action.
If this keeps you don't want to miss out on any opportunities that might arrive via the postal service, then a mailbox sensor ...