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.