Hi ysun320
Please edit your post to put the code between code tags. It will make it much easier for people to read it.
I just can read one reader's code which is pin8. No data come out.
Can you clarify exactly what happens when you compile and run your program. Do you get correct data from one reader but not the other?
One thing to check in your program is the declaration of your character buffer for reading the data.
Your code seems to have ...
char code[] = " ";
But the example program you linked to has this:
char code[] = " ";
The extra spaces between quotes are important to allocate enough space for the data you are reading.
Regards
Ray