Arduino SPI connection WHO_AM_I register on IMU
You are missing:


SPI.setClockDivider(SPI_CLOCK_DIV16);//1MHZ MAX SPEED. nIf you are using 16MHZ
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE0);
Desactivate I2C mode Register