How do I integrate an RFID scanner with HMI?

sorry forgot to mention the second script is used as a client timer script.