RFID Video Daemon

IMHO the error is here(arduino code):

if((val == 10)||(val == 13)) { // if header or stop bytes before the 10 digit reading
            break;                       // stop reading
          }