       
       if (error == 0)
         {
+          Serial.print("MPU number : ");
+          Serial.println(flag-5); 
           Serial.print(F("I2C device found at address 0x"));
           if (address<16)
             Serial.print(F("0"));

  Serial.print(F(", "));
  Serial.println(F(""));
 
  delay(1000);

    
          nDevices++;
        }
      else if (error==4)
        {
          Serial.print(F("Unknow error at address 0x"));
          if (address<16)
            Serial.print("0");
          Serial.println(address,HEX);
        }    
    }
  if (nDevices == 0)
    Serial.println("No I2C devices found\n");
  else 
    Serial.println("done\n");
  
  //delay(5000);           // wait 5 seconds for next scan
}


// But only if the AD0 pin is low.
// Some sensor boards have AD0 high, and the
// I2C address thus becomes 0x69.
#define MPU6050_I2C_ADDRESS 0x69
 
 int flag=6;
// Declaring an union for the registers and the axis values.
// The byte order does not match the byte order of
// the compiler and AVR chip.
