Motion Detection turning off

Why is the motion detection turning off on its own?