Magnetometer is now working with scaled function