     while (not Serial.available()){
         delay(10);
     }
+    while (Serial.available()){
+        Serial.read();
+    }
+
 
     //format for datafile is Yx, Yy, Yz, Wx, Wy, Wz, 1
     //for this orientation Yx = 0, Yy = 0, Yz = -1

    while (not Serial.available()){
        delay(10);
    }

    //format for datafile is Yx, Yy, Yz, Wx, Wy, Wz, 1
    //for this orientation Yx = 0, Yy = -1, Yz = 0

    while (not Serial.available()){
        delay(10);
    }
    while (Serial.available()){
        Serial.read();
    }


    //format for datafile is Yx, Yy, Yz, Wx, Wy, Wz, 1
    //for this orientation Yx = 0, Yy = 1, Yz = 0
