Problem with SM130 and Arduino UNO

So the pieces of code i try is not good for last ide?

Maybe, maybe not. There are some stupid things being done in both sketches. Fixed delays, flushing the serial buffer, etc.

In either of the sketches, you can add Serial.print()/Serial.println() statements to see what is happening. When you scan a tag, is there ever a reply from the reader? There appear to be several LEDs on the device. Do any of them light up when you scan a tag?

Do you know that your tags are the right kind for that reader?