I am trying to set up my magnetometer QMC5883L with my raspberry pi 4.

But the pi is somehow not reading the magnetometer.

I ran the command i2cdetect -y 1, but there is no detection.

My connections seem to be secure, and I have installed and updated all the necessary components also:

1. sudo apt-get update
2. sudo apt-get upgrade
3. sudo apt-get install i2c-tools
4. sudo apt-get install python-smbus
5. sudo apt-get install python3

I have set up the i2c interface active as well, using:

sudo raspi-config -> Interface -> i2c -> "YES"

I have also crossed checked the presence of all the required kernels at boot up time

1. i2c-dev
2. i2c-bcm2835
3. snd-bcm2835

I am still not able to figure out what the issue exactly is, have I missed some module or kernel out ?

Following is the link of the module/sensor being used:

<https://robu.in/product/gy-271-hmc5883l-3-axis-electronic-compass-module-magnetic-field-sensor-china-chip/>

(The above link has all the attachments like datasheet and library of the magnetometer)