motion sensor explained