No change in value of axis using HMC58883L

Hello to all,
I am trying to get the value of x- axis , y-axis and z-axis using HMC58883l sensor
after running the below code I am only getting same value for x,y,z axis . There is no change in the value after rottating the sensor.

Eagerly waiting for any supportive Reply

below is my arduino code

#include <Wire.h> //I2C Arduino Library

#define address 0x1E //0011110b, I2C 7bit address of HMC5883

void setup(){
  //Initialize Serial and I2C communications
  Serial.begin(9600);
  Wire.begin();
  
  //Put the HMC5883 IC into the correct operating mode
  Wire.beginTransmission(address); //open communication with HMC5883
  Wire.write(0x02); //select mode register
  Wire.write(0x00); //continuous measurement mode
  Wire.endTransmission();
}

void loop(){
  
  int x,y,z; //triple axis data

  //Tell the HMC5883 where to begin reading data
  Wire.beginTransmission(address);
  Wire.write(0x03); //select register 3, X MSB register
  Wire.endTransmission();
  
 
 //Read data from each axis, 2 registers per axis
  Wire.requestFrom(address, 6);
  if(6<=Wire.available()){
    x = Wire.read()<<8; //X msb
    x |= Wire.read(); //X lsb
    z = Wire.read()<<8; //Z msb
    z |= Wire.read(); //Z lsb
    y = Wire.read()<<8; //Y msb
    y |= Wire.read(); //Y lsb
  }
  
  //Print out values of each axis
  Serial.print("x: ");
  Serial.print(x);
  Serial.print("  y: ");
  Serial.print(y);
  Serial.print("  z: ");
  Serial.println(z);
  
  delay(250);
}

Output of the above code
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773
x: -24315 y: 246 z: 773

Use the I2C address scanner to make sure you have a genuine HCM5883L. More likely, you have instead the QMC5883.

See https://surtrtech.com/2018/02/01/interfacing-hmc8553l-qmc5883-digital-compass-with-arduino/

Thank you @jremington for your time
as per your reference link i got know about the chip used in my project and the sensor stability
Now i am getting the actual value of x ,y and z axis how can i convert the axis value into yaw , pitch and roll…

Regards

You can use the chip as an electronic compass to measure yaw, but first you have to calibrate the magnetometer, as described here: https://thecavepearlproject.org/2015/05/22/calibrating-any-compass-or-accelerometer-for-arduino/.

You need a 9DOF sensor to measure all three angles.