# Flow returns blank line between readings

**URL:** <https://discourse.nodered.org/t/flow-returns-blank-line-between-readings/61071>\
**Category:** General\
**Created:** [10 April 2022 15:28 UTC](https://discourse.nodered.org/t/flow-returns-blank-line-between-readings/61071 "2022-04-10T15:28:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [10 April 2022 15:42 UTC](https://discourse.nodered.org/t/flow-returns-blank-line-between-readings/61071/2 "2022-04-10T15:42:23Z")

</div>

You will find a solution here

> [@Remove manuel line break from string for msg.payload and switch](https://discourse.nodered.org/t/remove-manuel-line-break-from-string-for-msg-payload-and-switch/60835/2):
>
> You can use a function node to trim the payload before the switch msg.payload = msg.payload.trim(); return msg; or use JSONata in the switch property $trim($$.payload)

Or  
you could change the output of the Arduino code to  
`Serial.println("{\"T1\": " + (String)temp1 + "}");` to output an json string.

---

_[View the full topic](https://discourse.nodered.org/t/flow-returns-blank-line-between-readings/61071)._
