In the context of Industry 4.0, several technologies exist to enable and enhance the flexibility and productivity of lines allowing them to adapt to the production needs on demand. Two of these technologies are RFID and OPC-UA. RFID is a highly reliable system for data management with the capacity to read and write without the need for physical or electrical. OPC-UA is a communication standard which provides a secure exchange of information and data in the area of industrial automation, using an extensible standard protocol that can be used on multiplatform. This work implemented the integration between RFID and the OPC-UA applied to the Flexible Manufacturing System to create different routes based on information stored and read by the RFID antennas. The development of the project used the Node-RED environment as a programming and visualization tool to integrate RFID and OPC-UA. Final test showed that depending of the RFID code the part makes different stops at the stations of the manufacturing system, thus proving the integration between RFID and OPC-UA to achieve Flexible Production.