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

**URL:** https://discourse.nodered.org/t/how-do-i-know-the-the-type-of-value-of-the-node/64471
**Category:** General
**Created:** [28 June 2022 16:00 UTC](https://discourse.nodered.org/t/how-do-i-know-the-the-type-of-value-of-the-node/64471 "2022-06-28T16:00:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Bingchilling](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@Bingchilling](https://discourse.nodered.org/u/Bingchilling)
#### Post date: [28 June 2022 16:00 UTC](https://discourse.nodered.org/t/how-do-i-know-the-the-type-of-value-of-the-node/64471/1 "2022-06-28T16:00:11Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)
#### Post date: [28 June 2022 16:14 UTC](https://discourse.nodered.org/t/how-do-i-know-the-the-type-of-value-of-the-node/64471/3 "2022-06-28T16:14:11Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Bingchilling](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@Bingchilling](https://discourse.nodered.org/u/Bingchilling)
#### Post date: [28 June 2022 16:25 UTC](https://discourse.nodered.org/t/how-do-i-know-the-the-type-of-value-of-the-node/64471/4 "2022-06-28T16:25:02Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [28 June 2022 16:28 UTC](https://discourse.nodered.org/t/how-do-i-know-the-the-type-of-value-of-the-node/64471/5 "2022-06-28T16:28:01Z")

</div>

Also I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). 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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [27 August 2022 16:28 UTC](https://discourse.nodered.org/t/how-do-i-know-the-the-type-of-value-of-the-node/64471/6 "2022-08-27T16:28:49Z")

</div>

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