 // this constant won't change.  It's the pin number
 // of the sensor's output:
 const int pingPin = 8;
+long pingDist;
+const int nMeasurements = 20;
+int measurements[nMeasurements];
+int nRotations = 0;
 
 void setup() {
   // initialize serial communication:

void loop() {
  // establish variables for duration of the ping,
  // and the distance result in inches and centimeters:
  long duration, inches, cm;

  // The PING))) is triggered by a HIGH pulse of 2 or more microseconds.
  // Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
  pinMode(pingPin, OUTPUT);

    servoLeft.writeMicroseconds(1300);
    servoRight.writeMicroseconds(1300);
  }
  delay(100);
  servoLeft.writeMicroseconds(1500);
  servoRight.writeMicroseconds(1500);
}
