Example: Receive a notification when a detector is triggered.