How do I know the the type of value of the node?

Hello,

I have to use a node with this definition:

SensorInput:
A node that allows to receive sensor Inputs from the SmartFactory.
This nodes outputs the new sensor value whenever the selected sensor publishes a new value
The new value gets published in the msg.payload field, while the name of the sensor is added to msg.sensor.

The sensor is a light barrier that shows when something has passed through it. I would like to know the type of the new value but I don't know how to find it. I assume its a boolean value but I'm not sure.
Does anyone know how I can look for it in Node-Red?

Thank you in advance for the help!

Just using a debug node - and look what the value and type the msg.payload is?

Thanks for the reply! As you may have noticed I'm new to node-red haha. I'll try that out, thanks

Also I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

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