On this page you find the links to several other pages. They all contain essential Node-RED flows to make your implementation easier. Just copy the attached flows to your new Node-RED flow and from there make the right adjustments.
For the following information it is mandatory to know how to import a Node-RED flow. There is an article in the knowledge base regarding this issue: Importing and exporting in/from Node-RED
OPC UA / WAGO PLC
MQTT - Sensor-based
On this page from the Node-RED forum you can find a lot of information on Dos and Don’ts when it comes to building Node-RED flows: