Magneto click board

As a beginner you better use modules coming with Arduino libraries and example code.

See the User Manual for wiring.
See the AS5048A manual for the SPI communication protocol.