MPU9250 Magnetometer Not Working

I bought an MPU9250 sensor from Amazon, but the magnetometer is not working. The accelerometer and gyroscope are detected correctly, but I am unable to read any magnetometer data. Has anyone faced a similar issue or know how to fix it?

1 Like

Hey there, @grep320842, and welcome to the forum.

If you’re detecting the accelerometer and gyroscope than I’d suspect an issue with the code first and foremost. Would you be able to upload your code here so we can check that everything is working correctly?