@Boss lady I suggest you try and install the necessary packages for your chosen programming language (e.g., Python, C, or Node.js).And too,
ensure you have the necessary libraries for your sensor (QMC5883) and the IoT platform. I believe ,this will really be of help.