read the status from the motion sensor