Hello Niharika,
Yes, MAG3110 magnetometer should work with your application due to it very high sensitivity. To interface the sensor with your device, a MCU will do the perfect job. But it will take time, money and coding.. The mcu can grab magnetic measurements form the sensor through i2c and convert it into analog signals with filtered pwm output.
By the way, we don't have analog magnetometers in our portefolio and it's why I suggested this solution.
I hope it helps!
Thanks,
Anthony