PLC machine data sent Via MQTT to Node Red Then to SQL Database

Add an MQTT In node subscribing to the message coming in on MQTT, then use that message to trigger a mysql node to run the appropriate SELECT query.