YUN RFID??

Hi, i´m having some difficulties in understanding what´s the problem with my code, because it works just fine on a Uno but when i put it in Arduino YUN it doesn´t work…

The code is a simple RFID system but on the YUN it doesn´t show anything on the serial monitor… could it be some kind of problem with the compability beetween the YUN and the softwareserial librarie? or is the pins correct?

#include <SoftwareSerial.h>
SoftwareSerial RFID = SoftwareSerial(0,1);
const int led_pin = 6;
char character;
String our_id;

void setup()
{
Serial.begin(9600);
RFID.begin(9600);
pinMode(13, OUTPUT);
Serial.println(“done”);
delay(1000);

}

void loop()
{
while(RFID.available()>0)
{
character = RFID.read();
our_id += character;
}

if (our_id.length() > 10)
{
our_id = our_id.substring(1,13);
if (our_id == “290093E96536”)
{
Serial.print("ACCESS GRANTED (id: “);
Serial.print(our_id);
our_id = “”;
Serial.println(” ) ");
digitalWrite(led_pin, HIGH);
}
else
{
Serial.print("ACCESS DENIED (id: “);
Serial.print(our_id);
our_id = “”;
Serial.println(” ) ");
}

our_id = “”;
delay(1000);
}
}

You are using pins 0 and 1 with SoftwareSerial. These pins are hard wired to the Linux processor, to be used for Bridge communications. I'm sure you're getting a conflict with those pin functions.

Try using any other pairs of pins.