about the RFID RC522 kit programming

HI...
can any body tell me the code to interface RFID RC522 kit with its correct liabrary.... its simple card reading and compare with easy VR sheild input code...
thanks all

i use this coding but some error occure.....

/* Include the standard Arduino SPI library /
#include <SPI.h>
/
Include the RFID library */
#include <RFID.h>

/* Define the DIO used for the SDA (SS) and RST (reset) pins. */
#define SDA_DIO 10
#define RESET_DIO 9

/* Create an instance of the RFID library */
RFID MFRC522(SDA_DIO, RESET_DIO);

void setup()
{
Serial.begin(9600);
/* Enable the SPI interface /
SPI.begin();
/
Initialise the RFID reader */
RC522.init();
}

void loop()
{
/* Temporary loop counter */
byte i;

/* Has a card been detected? /
if (RC522.isCard())
{
/
If so then get its serial number */
RC522.readCardSerial();

Serial.println("Card detected:");

/* Output the serial number to the UART /
for(i = 0; i <= 4; i++)
{
Serial.print(RC522.serNum
,HEX);*

  • Serial.print(" ");*
  • }*
  • Serial.println();*
  • Serial.println();*
  • }*
    }
    the errors are;
    RFID does not name a type
    in function 'void setup'
    RC522 was not declared in this scope
    in function 'void loop()
    RC522 was not declared in this scope

Did you download and install the RFID library?
Where? From where?
What version of the IDE are you using?
Did you restart the IDE after installing the library?

i did not install the library,am using arduino version 1.0.5, i searched the libraries but can,t found correct library, i found a code from arduino-for-noob/MFRC522.h at master · shawnchain/arduino-for-noob · GitHub but don,t know how to use it. can u please tell me....
thanks

i downloaded and add to the library folder of arduino but same error persist.

RC522 was not declared in this scope

It doesn't get much more specific than that.
You haven't declared anything called RC522.

Please remember to use code tags when posting code.

You can try my source code to access the RC522 reader module from by blog article (german page / use google translate) 5Euro RFID/NFC Modul RC522 zum Auslesen von Mifare Tags | Regnerischer Nachmittag

It is an all in one file source code sample that dumps the content of mifare cards myarduino/RC522DumpMifare.ino at master · rena2019/myarduino · GitHub