# Split sensor readings

**URL:** <https://discourse.nodered.org/t/split-sensor-readings/41528>\
**Category:** Dashboard\
**Created:** [24 February 2021 05:18 UTC](https://discourse.nodered.org/t/split-sensor-readings/41528 "2021-02-24T05:18:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PinPat](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@PinPat](https://discourse.nodered.org/u/PinPat)\
**Post date:** [24 February 2021 05:18 UTC](https://discourse.nodered.org/t/split-sensor-readings/41528/1 "2021-02-24T05:18:37Z")

</div>

I am getting transmitter data as below.

Temperature Channel 1: C: 29.68Temperature Channel 2: C: 29.43Temperature Channel 3: C: 31.12

Can someone please guide me how can i separate these three readings? I want to create chart with three separate readings ( i.e. 29.68 , 29.43 , 31.12)? All three temperature readings are coming from one transmitter (NCD io).

I am collecting data locally on my laptop using NCD Mega modem & NCD 3 channel thermocouple sensors.

---

<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:** [24 February 2021 07:02 UTC](https://discourse.nodered.org/t/split-sensor-readings/41528/2 "2021-02-24T07:02:18Z")

</div>

Welcome to the forum @PinPat.

Please feed the data you are receiving into a debug node and show us what you get. Then we will more exactly what is there.

If you are a complete beginner 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.

Also have a good look at the node red doc Working with Messages which should help to answer your specific question.

---

<div class="post-metadata">

**Author:** ![PinPat](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@PinPat](https://discourse.nodered.org/u/PinPat)\
**Post date:** [24 February 2021 08:07 UTC](https://discourse.nodered.org/t/split-sensor-readings/41528/3 "2021-02-24T08:07:18Z")

</div>

Thanks for your quick response. I will go through playlist now.

Meanwhile dedug is giving me below code.

sensor\_data : msg.payload : Object

{ channel\_1: 30.43, channel\_2: 29.62, channel\_3: 30.12 }

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [24 February 2021 08:30 UTC](https://discourse.nodered.org/t/split-sensor-readings/41528/4 "2021-02-24T08:30:53Z")

</div>

If it's an object, you should be able to use a 'change node' or a 'function node' to extract the data.

Here's an example for 'channel\_1'.

![Screen Shot 02-24-21 at 08.27 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4b9328356ee1bbbb16089aee181d2a78465e23ac.jpeg)

![Screen Shot 02-24-21 at 08.27 AM 001](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/4/e4c54fdc8a13c8d29ff9d2a12b66876bed19bf44.jpeg)

![Screen Shot 02-24-21 at 08.27 AM 002](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/fef790599cb326388358c1f4808d5765937819ad.jpeg)

---

<div class="post-metadata">

**Author:** ![PinPat](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@PinPat](https://discourse.nodered.org/u/PinPat)\
**Post date:** [24 February 2021 12:33 UTC](https://discourse.nodered.org/t/split-sensor-readings/41528/5 "2021-02-24T12:33:06Z")

</div>

Thanks @dynamicdave . Magic worked.

---

<div class="post-metadata">

**Author:** ![SonoraTechnical](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sonoratechnical/32/20033_2.png) [@SonoraTechnical](https://discourse.nodered.org/u/SonoraTechnical)\
**Post date:** [24 February 2021 20:29 UTC](https://discourse.nodered.org/t/split-sensor-readings/41528/6 "2021-02-24T20:29:24Z")

</div>

That was a simple, yet elegant solution. Thanks for sharing!

---

<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:** [10 March 2021 20:29 UTC](https://discourse.nodered.org/t/split-sensor-readings/41528/7 "2021-03-10T20:29:51Z")

</div>

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