changed motion and sensors