I am having an issue with my QMC5883L Magnetometer. I have tried various different example codes with their corresponding libraries, trying to get an x y z value. However all i see in my serial monitor is either X: 0 Y: 0 Z: 0 or X: -1 Y: -1 Z: -1.
VCC ---- 3.3V
GND ---- GND
SCL ---- A5
SDA ---- A4
I ran the example code for x y z data from this library: GitHub - mechasolution/Mecha_QMC5883L: Arduino lib for QMC5883 6
Does anyone have any idea what could be wrong?