Magnetic rotation sensor code, help??

The model of the sensor is definitely an AS5047D 14-bit.
Link to sensor: AS5047D | ams

I will look at the beginner tutorials regarding the coding, just wondering if anyone had done something similar as I needed to calculate using arduino the angular position using the magnet for readings.

I do have the magnet to attach to the axle and also a plastic casing which attaches to the structure of the exercise bike whilst keeping the magnet and sensor in close proximity.