I am using an accelerometer, magnetometer, gyroscope, IMU MPU9250 GY-91 +BMP280 through I2C communication with which I want to calculate the angle of inclination, when moving the sensor the values of the gyroscope and magnetometer vary, but the values of the accelerometer remain fixed . Does anyone know how I can solve this problem?
An accelerometer measures the change of speed.
If you move the board very slowly - it will not measure anything (not enough speed change).
But compass and gyro will see a change.
It depends also, which axis value do you measure: if you just measure Z and you move in X direction - you do not get it.
Just try to understand what is the difference between all the sensors, what they can "see" and measure. An accelerometer can only measure "speed changes": not any angle or position change. It acts just on "speed up" or "speed down". And when it came to a rest: you do not measure anymore anything. You get just a value as long as you increase/decrease the speed.
Maybe you measure when board has rested again (not changing speed anymore).