Created MotionEndedTask which fires only once 500ms after motion stops

Also added a “USE_CAMERA” bool to work around camera issues for now.