Read value from PLC and send email

Hi All,

I am starting to use Node-Red and I would like to read a value of a PLC (modbus TCP read node) and I would like to send email if the value is higher than 10 for example.

I can read the value
I can also send email with the email nodes but only with the inject node (true/false)

I don't know how to link the value that I am reading to the email node. I have tried to use some functions but so far without success.

Do you have any example or advice please ?

Thanks for your help

Best Regards :slight_smile:

You can use a switch node to only pass on the message if the value is > 10. Then feed that to an email node.
Have you read the node red docs Working with Messages?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.