Parallax RFID Reader with ioProx Card

Hello, I set up my 125 Hz Parallax RFID Reader, but it is not detecting my fob (P30DMG). Here is a link to the product From my research the fob (P30DMG) is 125 Hz also. When I print out the SoftwareSerial it just prints out -1. What could be going wrong?

#include <SoftwareSerial.h>

int  val = 0; 
char code[10]; 
int bytesread = 0; 

#define rxPin 8
#define txPin 9
// RFID reader SOUT pin connected to Serial RX pin at 2400bps to pin8

void setup()
  Serial.begin(2400);  // Hardware serial for Monitor 2400bps

  pinMode(2,OUTPUT);       // Set digital pin 2 as OUTPUT to connect it to the RFID /ENABLE pin 
  digitalWrite(2, LOW);    // Activate the RFID reader 

void loop()
  SoftwareSerial RFID = SoftwareSerial(rxPin,txPin); 
  if((val = == 10)
  {   // check for header 
    bytesread = 0; 
    {  // read 10 digit code 
      val =; 
      if((val == 10)||(val == 13))
      {  // if header or stop bytes before the 10 digit reading 
        break;                       // stop reading 
      code[bytesread] = val;         // add the digit           
      bytesread++;                   // ready to read next digit  

    if(bytesread == 10)
    {  // if 10 digit read is complete 
      Serial.print("TAG code is: ");   // possibly a good TAG 
      Serial.println(code);            // print the TAG code 
    bytesread = 0; 
    delay(500);                       // wait for a second


I would like to create an RFID cloner of the P30DMG from Kantech. I tried using a parallax rfid reader, but it doesn't seem to detect the card. What rfid reader should I use to detect it and how should I go about recreating that signal?


I see you are new to the forum. I also see you failed to read How to use this forum - please read. This would be a good time for you to read it. I suggest spending some with 13. Forum etiquette.