/* INSTRUCTIONS: ============= Connections: ------------ 1. Connect 5V of Arduino to 5V of RFID module. 2. Connect GND of Arduino to GND of RFID module. 3. Connect Digital Pin 2 of Arduino to TX pin of RFID module. To read output: -------------- 1. Upload the code and open the serial monitor by pressing Ctrl+Shift+M 2. Swipe a card and see what output you're getting on the serial monitor. */ #include SoftwareSerial mySerial(2, 3); // RX, TX void setup() { Serial.begin(9600); mySerial.begin(9600); } void loop() // run over and over { if (mySerial.available()) Serial.println(mySerial.read()); }