   else 
     Serial.println("done\n");
 
-  if(flag==1078io)
+  if(flag==10)
     flag=6;
     else
       flag++;

  //   340 per degrees Celsius, -512 at 35 degrees.
  // At 0 degrees: -512 - (340 * 35) = -12412
 
  Serial.print(F("temperature: "));
  dT = ( (double) accel_t_gyro.value.temperature + 12412.0) / 340.0;
  Serial.print(dT, 3);
  Serial.print(F(" degrees Celsius"));
  Serial.println(F(""));
 
 
  // Print the raw gyro values.
 
  Serial.print(F("gyro x,y,z : "));
  Serial.print(accel_t_gyro.value.x_gyro, DEC);
  Serial.print(F(", "));
  Serial.print(accel_t_gyro.value.y_gyro, DEC);
  Serial.print(F(", "));
  Serial.print(accel_t_gyro.value.z_gyro, DEC);
  Serial.print(F(", "));
  Serial.println(F(""));
 
 //delay(1000);


  MPU6050_write_reg (MPU6050_PWR_MGMT_1, 0);
  Serial.println("\nI2C Scanner");
    }
      mySerial.begin(9600);

}
void loop(){

