Added example of interrupt-based activity detection