       
       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
}


    int16_t z_gyro;
  } value;
};
int pin3=3;
int pin6=6;
int pin7=7;
int pin8=8;
int pin9=9;


const int MPU_addr=0x69;  // I2C address of the MPU-6050
//int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;

void setup(){

 int error;
