# How to filter which measurement the gauge reads?

**URL:** <https://discourse.nodered.org/t/how-to-filter-which-measurement-the-gauge-reads/94655>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [15 January 2025 19:36 UTC](https://discourse.nodered.org/t/how-to-filter-which-measurement-the-gauge-reads/94655 "2025-01-15T19:36:38Z")\
**Posts on this page:** 3\
**Page:** 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:** [16 January 2025 18:39 UTC](https://discourse.nodered.org/t/how-to-filter-which-measurement-the-gauge-reads/94655/21 "2025-01-16T18:39:07Z")

</div>

Bakman2 not in the gauge node this is not mustache

---

<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:** [16 January 2025 18:40 UTC](https://discourse.nodered.org/t/how-to-filter-which-measurement-the-gauge-reads/94655/22 "2025-01-16T18:40:48Z")

</div>

As your incoming payload is a buffer which means you probably have the output of the serial node set to buffer not string.

To output a JSON string from the Arduino code try.

```auto
 Serial.print("{\"Temperature\": ");
  Serial.print(temperature );
  Serial.print(",\"Humidity\": ");
  Serial.print(humidity);
  Serial.println("}");

```

Which should create a JSON string  
Then make sure the serial node is outputting a UTF8 ascii string not a buffer  
Then pass that through a JSON node and then you can enter {{msg.payload.Temperature}} in the value format field.

---

<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:** [15 February 2025 18:40 UTC](https://discourse.nodered.org/t/how-to-filter-which-measurement-the-gauge-reads/94655/23 "2025-02-15T18:40:58Z")

</div>

Closed on 15 February 2025 18:40 UTC

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

[Previous page](https://discourse.nodered.org/t/how-to-filter-which-measurement-the-gauge-reads/94655.md?page=1)
