Camera motion sensor