mpu_init failed on nano with GY-9150

Hi Guys

I am getting an error when working wit my Arduino Nano and the 9DOF GY-9150:

MagCal9150 starting
Enter s to save current data to EEPROM
mpu_init failed with code: -1
Calibrating device 0

I am using this library:

Any tips or ideas what might be wrong

Regards Kim

Hi, welcome to the forum.

When a problem with the I2C bus occurs, always run the i2c_scanner :

Hi, Thanks.

Super, it worked. by running the i2c scanner I found out I was using the wrong pins.

Thanks Peter!