# Temp & Humidity value problem

**URL:** <https://discourse.nodered.org/t/temp-humidity-value-problem/40586>\
**Category:** General\
**Created:** [7 February 2021 23:20 UTC](https://discourse.nodered.org/t/temp-humidity-value-problem/40586 "2021-02-07T23:20:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gary188](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gary188/32/36739_2.png) [@gary188](https://discourse.nodered.org/u/gary188)\
**Post date:** [7 February 2021 23:20 UTC](https://discourse.nodered.org/t/temp-humidity-value-problem/40586/1 "2021-02-07T23:20:56Z")

</div>

I'm pretty new to node red however I've managed to get a few flows working but I'm stumped with this particular problem.  
Basically I've got two nodes from a DHT11 sensor, one for humidity and the other for temp, I need to run both values through a function node. I have done this however my combined output alternates between one of the values showing as undefined and the other showing the correct value. I can post the flow or the contents of the function node if it helps. Any help would be highly appreciated.

---

<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:** [7 February 2021 23:25 UTC](https://discourse.nodered.org/t/temp-humidity-value-problem/40586/2 "2021-02-07T23:25:53Z")

</div>

There is an example of how to join messages here [Create a single message from separate streams of messages : Node-RED](https://cookbook.nodered.org/basic/join-streams)  
or another example [here](https://discourse.nodered.org/t/best-practice-for-conditional-trigger/40575/2)

---

<div class="post-metadata">

**Author:** ![gary188](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gary188/32/36739_2.png) [@gary188](https://discourse.nodered.org/u/gary188)\
**Post date:** [7 February 2021 23:40 UTC](https://discourse.nodered.org/t/temp-humidity-value-problem/40586/3 "2021-02-07T23:40:52Z")

</div>

Thank you for the reply, using the join node did the trick.  
The flow is now working perfectly, thank you so much

---

<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:** [21 February 2021 23:41 UTC](https://discourse.nodered.org/t/temp-humidity-value-problem/40586/4 "2021-02-21T23:41:19Z")

</div>

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