     Serial.println("Failed setup.");
     while(1);
   }
+  delay(2000);
 }
 
 float x, y, z;

LSM303C myIMU;

void setup() {
  Serial.begin(115200);

  if (myIMU.begin(

{

  x = myIMU.readAccelX();
  while (isnan(x)) {
    x = myIMU.readAccelX();
  }
  y = myIMU.readAccelY();
  while (isnan(y)){
    y = myIMU.readAccelY();
  }
  z = myIMU.readAccelZ();
  while (isnan(z)){
    z = myIMU.readAccelZ();
  }

  Serial.print(x);
  Serial.print(",");
