# Serial data from arduino

**URL:** <https://discourse.nodered.org/t/serial-data-from-arduino/8602>\
**Category:** General\
**Created:** [4 March 2019 16:42 UTC](https://discourse.nodered.org/t/serial-data-from-arduino/8602 "2019-03-04T16:42:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mani2411](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mani2411](https://discourse.nodered.org/u/mani2411)\
**Post date:** [4 March 2019 16:42 UTC](https://discourse.nodered.org/t/serial-data-from-arduino/8602/1 "2019-03-04T16:42:55Z")

</div>

hi all  
i interfaced arduino with raspberry pi and getting serial data on node red from serial node but i want to print sensor data on dashboard gauge  
My msg.payload is giving "distance:xx"  
i am using ultrasonic sensor to get distance i already done it with pisrf node

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [4 March 2019 16:50 UTC](https://discourse.nodered.org/t/serial-data-from-arduino/8602/2 "2019-03-04T16:50:01Z")

</div>

@mani2411 Right now your post isn't a question, its just a statement. It really helps if you spell out what you want clearly and also explain which bit you don't know how to do.

What have you tried?

You have `msg.payload` set to something like `distance:xx` - I assume you want to pull the `xx` value out of the payload to pass to a dashboard gauge. Is that right?

From the previous thread you started, I realise you don't know much JavaScript, but it would really help if you spent a bit of time looking at it. There are countless results for 'how to split a string in javascript'.

---

<div class="post-metadata">

**Author:** ![mani2411](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mani2411](https://discourse.nodered.org/u/mani2411)\
**Post date:** [4 March 2019 16:51 UTC](https://discourse.nodered.org/t/serial-data-from-arduino/8602/3 "2019-03-04T16:51:54Z")

</div>

thanks for being so patient i got it working can i use any other language instead of js for function node

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [4 March 2019 17:45 UTC](https://discourse.nodered.org/t/serial-data-from-arduino/8602/4 "2019-03-04T17:45:10Z")

</div>

The function node uses javascript as Node-RED is a nodejs app. But some people have published nodes that allow you to use python for example. You can search all the nodes at [flows.nodered.org](http://flows.nodered.org)
