Temperature and possible Magnetometer data off for Lis3mdl in cubeIDE
Recently, I created a driver for the lis3mdl sensor. The sensor is providing data, but there are issues with the temperature readings and potentially with the magnetometer data. I don't have prior experience with magnetometers, so I'm uncertain if the data is accurate. When I move the sensor in different directions, the data changes, but I'm not sure if it should be close to zero. Additionally, there's a temperature discrepancy of about 10 degrees; the sensor shows 50 degrees in my apartment while my thermostat reads 72 degrees. Below, I've included images showing the initialization, output, and temperature/magnetometer data readings. It's worth noting that I divided the temperature data by 256 based on recommendations from this article https://forums.adafruit.com/viewtopic.php?p=900905 for improved accuracy.
