update example for testing motion detection