Cant get the RFID-RC522 to work


I am trying to get my RFID-RC522 to work but everything i try it fails. Anyone can tell me how to connect it with my arduino? (With an good working code to read the HEX) (Got the RFDI with my Arduino)


RC522 MODULE Uno/Nano MEGA SDA D10 D9 SCK D13 D52 MOSI D11 D51 MISO D12 D50 IRQ N/A N/A GND GND GND RST D9 D8 3.3V 3.3V 3.3V

connection diagram as follows. You can share me code. Inorder to test what exact problem is.