# Comparison of two temperatures

**URL:** <https://discourse.nodered.org/t/comparison-of-two-temperatures/39239>\
**Category:** General\
**Created:** [16 January 2021 19:10 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239 "2021-01-16T19:10:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [16 January 2021 19:10 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/1 "2021-01-16T19:10:15Z")

</div>

I'm new to Node Red and can't figure out how to compare two values ( two temperatures). I get two temperatures from openhab (current temperature and target temperature). How do I compare them and, if the condition is met, start a further action? For example:1. The target temperature is 23 degrees, the current temperature is 25, i.e. you need to close the tap on the battery. 2. The target temperature is 23 degrees, the current temperature is 20, i.e. you need to open the tap on the battery. The hysteresis is 1 degree. How to implement it? Using the node function?

---

<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:** [16 January 2021 19:25 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/2 "2021-01-16T19:25:52Z")

</div>

Are they in the same message?

---

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [16 January 2021 19:51 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/3 "2021-01-16T19:51:52Z")

</div>

In different

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 January 2021 19:57 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/4 "2021-01-16T19:57:21Z")

</div>

See [this article in the cookbook](https://cookbook.nodered.org/basic/join-streams) for an example of how to join messages into one object. Then you can access the two properties in a function node at the same time.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [16 January 2021 20:15 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/5 "2021-01-16T20:15:10Z")

</div>

if you do a search in the manage pallet section of the editor for thermostat nodes there are several out there you may find useful. Of course I'm fairly certain that people here have probably rolled their own as well and they may be willing to share.

---

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [17 January 2021 15:56 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/6 "2021-01-17T15:56:05Z")

</div>

I didn't find anything suitable, there are no ideas other than trying to write in java. In general I thought this would be a common situation

---

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [17 January 2021 16:14 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/7 "2021-01-17T16:14:58Z")

</div>

Have a look at:

> **[node-red-contrib-ramp-thermostat](https://flows.nodered.org/node/node-red-contrib-ramp-thermostat)**
>
> A Node-RED node that emulates a programmable thermostat.

---

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [17 January 2021 16:17 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/8 "2021-01-17T16:17:08Z")

</div>

This is not the case, the target temperature is set in the application and not written in the node

---

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [17 January 2021 16:24 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/9 "2021-01-17T16:24:23Z")

</div>

You can set the target programmatically.

---

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [17 January 2021 16:32 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/10 "2021-01-17T16:32:21Z")

</div>

Register it in node, but how to change it? Constantly go in and change?

---

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [17 January 2021 16:36 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/11 "2021-01-17T16:36:17Z")

</div>

See setTarget

---

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [17 January 2021 16:48 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/12 "2021-01-17T16:48:26Z")

</div>

To set the target temperature, the topic should be called SetTarget?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [17 January 2021 17:25 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/13 "2021-01-17T17:25:57Z")

</div>

I've used that node and the only gotcha is any command you use to set temperature is transient so be careful to take steps to make it do what you want on power up, or make sure sure it powers up like you think.  
[Edit]  
watch your capitalization on your commands

---

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [17 January 2021 17:46 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/14 "2021-01-17T17:46:50Z")

</div>

How to work with it? I get the target temperature from OPENHAB, then use node function to convert the value to a numeric value, and how do I set the target temperature?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [17 January 2021 18:01 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/15 "2021-01-17T18:01:17Z")

</div>

@cflurin actually wrote the node so he's the expert but while waiting for him  
msg = {  
payload: 22, // or whatever current is  
topic: 'setCurrent,  
}

That tells it where the temp is

msg ={  
payload: 25, // or whatever you want temp to be  
topic: 'setTarget',  
}

sets where you want temp to go  
[edit]  
You are probably going to need a function node or two in front of this to get the messages into a format you can use and to store temps possibly, also some widgets on dashboard to adjust the settings

---

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [17 January 2021 19:53 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/16 "2021-01-17T19:53:41Z")

</div>

Nothing is clear... I got two temperatures, removed the temperature sign, and converted them to a numeric format. What to do next?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [17 January 2021 19:57 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/17 "2021-01-17T19:57:36Z")

</div>

It may help if you posted your flow

---

<div class="post-metadata">

**Author:** ![NooBAsTiK](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@NooBAsTiK](https://discourse.nodered.org/u/NooBAsTiK)\
**Post date:** [17 January 2021 20:07 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/18 "2021-01-17T20:07:50Z")

</div>

```auto
[{"id":"2359a6f.6d6f85a","type":"tab","label":"Warm","disabled":false,"info":""},{"id":"5f450b9e.721934","type":"openhab2-in","z":"2359a6f.6d6f85a","name":"Cabinet_temp","controller":"ac368245.00ba1","itemname":"Temperature_cabinet","x":90,"y":140,"wires":[["79b1b959.ce0468"],[]]},{"id":"218a1f48.ad847","type":"openhab2-in","z":"2359a6f.6d6f85a","name":"Target_temp","controller":"ac368245.00ba1","itemname":"Target_temp_cabinet","x":110,"y":60,"wires":[["a4b33d28.92113"],[]],"info":"Целевая температура для поддержания"},{"id":"3faaa291.62672e","type":"comment","z":"2359a6f.6d6f85a","name":"Батарея в кабинете","info":"","x":160,"y":20,"wires":[]},{"id":"a4b33d28.92113","type":"function","z":"2359a6f.6d6f85a","name":"Number_format","func":"msg.payload = Number (msg.payload)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":400,"y":40,"wires":[["e84ca637.d8d478"]]},{"id":"79b1b959.ce0468","type":"change","z":"2359a6f.6d6f85a","name":"Clear","rules":[{"t":"change","p":"payload","pt":"msg","from":" °C","fromt":"str","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":220,"wires":[["53011dcc.f405c4"]]},{"id":"53011dcc.f405c4","type":"function","z":"2359a6f.6d6f85a","name":"Number_format","func":"msg.payload = Number(msg.payload).toFixed(1)*1;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":780,"y":220,"wires":[["e84ca637.d8d478"]]},{"id":"e84ca637.d8d478","type":"debug","z":"2359a6f.6d6f85a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1100,"y":120,"wires":[]},{"id":"ac368245.00ba1","type":"openhab2-controller","name":"OpenHabServer","protocol":"http","host":"192.168.88.1","port":"8080","path":"","username":"","password":""}]

```

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [17 January 2021 20:31 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/19 "2021-01-17T20:31:18Z")

</div>

I don't run openhab so I have no idea what that data will look like. So in my flow I've used some inject nodes to simulate data coming in. I set the nodes to string just in case your data comes in a string format then I convert to a number.

```auto
[{"id":"2359a6f.6d6f85a","type":"tab","label":"Warm","disabled":false,"info":""},{"id":"3faaa291.62672e","type":"comment","z":"2359a6f.6d6f85a","name":"Батарея в кабинете","info":"","x":240,"y":40,"wires":[]},{"id":"a4b33d28.92113","type":"function","z":"2359a6f.6d6f85a","name":"set current","func":"let z = Number(msg.payload);\nmsg = {\n payload: z,\n topic: 'setCurrent',\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":470,"y":120,"wires":[["e84ca637.d8d478","b55a10cf.c78568"]]},{"id":"53011dcc.f405c4","type":"function","z":"2359a6f.6d6f85a","name":"set target","func":"let z = Number(msg.payload);\nmsg = {\n payload: z,\n topic: 'setTargt',\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":220,"wires":[["e84ca637.d8d478","b55a10cf.c78568"]]},{"id":"e84ca637.d8d478","type":"debug","z":"2359a6f.6d6f85a","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":790,"y":120,"wires":[]},{"id":"b55a10cf.c78568","type":"ramp-thermostat","z":"2359a6f.6d6f85a","name":"test","profile":"79f20c8c.fe6764","hysteresisplus":"1","hysteresisminus":"1","x":790,"y":220,"wires":[["d8c8af25.7b31c8"],["bdb90a8a.0b02d8"],["af6efea8.67e878"]]},{"id":"872e9ee6.23ca38","type":"inject","z":"2359a6f.6d6f85a","name":"current temp","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"setCurrent","payload":"21","payloadType":"str","x":200,"y":120,"wires":[["a4b33d28.92113"]]},{"id":"9d9d8dca.7732a8","type":"inject","z":"2359a6f.6d6f85a","name":"target","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"setTarget","payload":"25","payloadType":"str","x":210,"y":220,"wires":[["53011dcc.f405c4"]]},{"id":"d8c8af25.7b31c8","type":"debug","z":"2359a6f.6d6f85a","name":"A","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":200,"wires":[]},{"id":"bdb90a8a.0b02d8","type":"debug","z":"2359a6f.6d6f85a","name":"B","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":280,"wires":[]},{"id":"af6efea8.67e878","type":"debug","z":"2359a6f.6d6f85a","name":"C","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":360,"wires":[]},{"id":"b351a6e0.7595a","type":"inject","z":"2359a6f.6d6f85a","name":"hysteresis plus","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":230,"y":340,"wires":[["bd34c740.60466"]]},{"id":"bd34c740.60466","type":"function","z":"2359a6f.6d6f85a","name":"set hysteresis plus","func":"let z = Number(msg.payload);\nmsg = {\n payload: z,\n topic: 'setHysteresisPlus',\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":500,"y":340,"wires":[["b55a10cf.c78568","e84ca637.d8d478"]]},{"id":"9e24fb02.4ad3d8","type":"inject","z":"2359a6f.6d6f85a","name":"hysteresis minus","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":240,"y":420,"wires":[["4d43a817.260308"]]},{"id":"4d43a817.260308","type":"function","z":"2359a6f.6d6f85a","name":"set hysterisis minus","func":"let z = Number(msg.payload);\nmsg = {\n payload: z,\n topic: 'setHysteresisMinus',\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":500,"y":420,"wires":[["b55a10cf.c78568","e84ca637.d8d478"]]},{"id":"79f20c8c.fe6764","type":"profile","name":"test","time1":"","temp1":"","time2":"","temp2":"","time3":"","temp3":"","time4":"","temp4":"","time5":"","temp5":"","time6":"","temp6":"","time7":"","temp7":"","time8":"","temp8":"","time9":"","temp9":"","time10":"","temp10":""}]

```

there are a lot of things missing such as how to get dashboard data into the node but maybe this will at least show you the basics of what you need. If you go into the link @cflurin provided showing the node there is a lot of example code there you should look at. Also, in your flow you don't have node loaded so that my be a starting point. Get the node installed and use inject nodes to see what happens. My base flow should be a start for that. It's just not possible to try to guess what you want to do or how to do it as there are so many scenarios so try to muddle through as best as you can and when you get stuck ask questions. I'm not a great programmer but this node I've used so I do have some familiarity with it. There are lots of really good programmers here to help as well.  
Keep trying

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [17 January 2021 20:34 UTC](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239/20 "2021-01-17T20:34:46Z")

</div>

```auto
[{"id":"2359a6f.6d6f85a","type":"tab","label":"Warm","disabled":false,"info":""},{"id":"3faaa291.62672e","type":"comment","z":"2359a6f.6d6f85a","name":"Батарея в кабинете","info":"","x":240,"y":40,"wires":[]},{"id":"a4b33d28.92113","type":"function","z":"2359a6f.6d6f85a","name":"set current","func":"let z = Number(msg.payload);\nmsg = {\n payload: z,\n topic: 'setCurrent',\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:msg.payload});\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":470,"y":120,"wires":[["e84ca637.d8d478","b55a10cf.c78568"]]},{"id":"53011dcc.f405c4","type":"function","z":"2359a6f.6d6f85a","name":"set target","func":"let z = Number(msg.payload);\nmsg = {\n payload: z,\n topic: 'setTarget',\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:msg.payload });\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":220,"wires":[["e84ca637.d8d478","b55a10cf.c78568"]]},{"id":"e84ca637.d8d478","type":"debug","z":"2359a6f.6d6f85a","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":790,"y":120,"wires":[]},{"id":"b55a10cf.c78568","type":"ramp-thermostat","z":"2359a6f.6d6f85a","name":"test","profile":"79f20c8c.fe6764","hysteresisplus":"1","hysteresisminus":"1","x":790,"y":220,"wires":[["d8c8af25.7b31c8"],["bdb90a8a.0b02d8"],["af6efea8.67e878"]]},{"id":"872e9ee6.23ca38","type":"inject","z":"2359a6f.6d6f85a","name":"current temp","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"setCurrent","payload":"21","payloadType":"str","x":200,"y":120,"wires":[["a4b33d28.92113"]]},{"id":"9d9d8dca.7732a8","type":"inject","z":"2359a6f.6d6f85a","name":"target","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"setTarget","payload":"25","payloadType":"str","x":210,"y":220,"wires":[["53011dcc.f405c4"]]},{"id":"d8c8af25.7b31c8","type":"debug","z":"2359a6f.6d6f85a","name":"A","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":200,"wires":[]},{"id":"bdb90a8a.0b02d8","type":"debug","z":"2359a6f.6d6f85a","name":"B","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":280,"wires":[]},{"id":"af6efea8.67e878","type":"debug","z":"2359a6f.6d6f85a","name":"C","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":360,"wires":[]},{"id":"b351a6e0.7595a","type":"inject","z":"2359a6f.6d6f85a","name":"hysteresis plus","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":230,"y":340,"wires":[["bd34c740.60466"]]},{"id":"bd34c740.60466","type":"function","z":"2359a6f.6d6f85a","name":"set hysteresis plus","func":"let z = Number(msg.payload);\nmsg = {\n payload: z,\n topic: 'setHysteresisPlus',\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:msg.payload });\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":500,"y":340,"wires":[["b55a10cf.c78568","e84ca637.d8d478"]]},{"id":"9e24fb02.4ad3d8","type":"inject","z":"2359a6f.6d6f85a","name":"hysteresis minus","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":240,"y":420,"wires":[["4d43a817.260308"]]},{"id":"4d43a817.260308","type":"function","z":"2359a6f.6d6f85a","name":"set hysterisis minus","func":"let z = Number(msg.payload);\nmsg = {\n payload: z,\n topic: 'setHysteresisMinus',\n}\nnode.status({fill:\"blue\",shape:\"dot\",text:msg.payload });\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":500,"y":420,"wires":[["b55a10cf.c78568","e84ca637.d8d478"]]},{"id":"79f20c8c.fe6764","type":"profile","name":"test","time1":"00:00","temp1":"10","time2":"23:59","temp2":"10","time3":"","temp3":"","time4":"","temp4":"","time5":"","temp5":"","time6":"","temp6":"","time7":"","temp7":"","time8":"","temp8":"","time9":"","temp9":"","time10":"","temp10":""}]

```

missed a couple of things in first flow, use this one

[Next page](https://discourse.nodered.org/t/comparison-of-two-temperatures/39239.md?page=2)
