Function to compare ds18b20 to numeric value

How to use the function to compare 2 inputs and a switch input

[{"id":"c04670e4.3dd52","type":"ui_numeric","z":"bcc6b76b.ea3138","name":"","label":"b","tooltip":"","group":"56625c74.7d32d4","order":2,"width":0,"height":0,"passthru":false,"topic":"","format":"{{value}}","min":0,"max":"30","step":"0.5","x":210,"y":800,"wires":[["7afc36a1.0c8618","19543d2e.8f95a3"]]},{"id":"1e363307.46b04d","type":"function","z":"bcc6b76b.ea3138","name":"","func":"context.node == context.node || 0;\ncontext.node1 == context.node1 || 0;\n\nif (msg.topic == 'a'){\n    context.node = msg.payload;\n} else if (msg.topic == 'b'){\n    context.node1 = msg.payload;\n}\n\nif (context.node >= context.node1){\n    return{ topic: 'd', payload: 'koelen'}\n}else if (context.node <= context.node1){\n    return{ topic: 'e', payload: 'uit'}\n}\n","outputs":1,"noerr":0,"x":770,"y":760,"wires":[["1cbb5e38.9596a2","ec99d7da.f66448"]]},{"id":"1cbb5e38.9596a2","type":"debug","z":"bcc6b76b.ea3138","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":920,"y":720,"wires":[]},{"id":"ec99d7da.f66448","type":"ui_text","z":"bcc6b76b.ea3138","group":"56625c74.7d32d4","order":5,"width":0,"height":0,"name":"","label":"kk","format":"{{msg.payload}}","layout":"row-spread","x":940,"y":780,"wires":[]},{"id":"f2dae333.5123c","type":"change","z":"bcc6b76b.ea3138","name":"a","rules":[{"t":"change","p":"topic","pt":"msg","from":"","fromt":"str","to":"","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":720,"wires":[["1e363307.46b04d","6eae978d.38f7e8"]]},{"id":"6eae978d.38f7e8","type":"debug","z":"bcc6b76b.ea3138","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":650,"y":680,"wires":[]},{"id":"7afc36a1.0c8618","type":"debug","z":"bcc6b76b.ea3138","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":650,"y":840,"wires":[]},{"id":"19543d2e.8f95a3","type":"change","z":"bcc6b76b.ea3138","name":"b","rules":[{"t":"change","p":"topic","pt":"msg","from":"","fromt":"num","to":"","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":780,"wires":[["1e363307.46b04d"]]},{"id":"84da0e5a.31b04","type":"ds18b20","z":"bcc6b76b.ea3138","name":"Koelkast","sensorid":"28-0516944078ff","timer":"1","x":480,"y":600,"wires":[["b28d4840.ef9ea8","620986bd.1efe78","f2dae333.5123c"]]},{"id":"56625c74.7d32d4","type":"ui_group","name":"Group 3","tab":"42678669.1270b8","order":1,"disp":true,"width":6},{"id":"42678669.1270b8","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Your flow cannot be imported in this format.
Please edit your post above after reading this post.

Oeps sorry

[{"id":"fdbc8f4d.cd70e","type":"ui_switch","z":"bcc6b76b.ea3138","name":"","label":"switch","tooltip":"","group":"56625c74.7d32d4","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":470,"y":800,"wires":[["c38eb4cd.1a71f8"]]},{"id":"c04670e4.3dd52","type":"ui_numeric","z":"bcc6b76b.ea3138","name":"","label":"Settemp","tooltip":"","group":"56625c74.7d32d4","order":2,"width":0,"height":0,"passthru":false,"topic":"","format":"{{value}}","min":0,"max":"30","step":"0.5","x":480,"y":720,"wires":[["c38eb4cd.1a71f8"]]},{"id":"c38eb4cd.1a71f8","type":"function","z":"bcc6b76b.ea3138","name":"","func":"if (msg.payload.Koelkast > msg.payload.Settemp && msg.payload.switch == \"ON\") {\n    msg.payload = \"0\";\n}\nelse if (msg.payload.Koelkast < msg.payload.Settemp || msg.payload.switch == \"OFF\") {\n    msg.payload = \"1\";\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":770,"y":720,"wires":[["10b084ac.279b6b","b0f82fbe.6a40d"]]},{"id":"10b084ac.279b6b","type":"rpi-gpio out","z":"bcc6b76b.ea3138","name":"Omvormer","pin":"32","set":"","level":"0","freq":"","out":"out","x":1110,"y":720,"wires":[]},{"id":"b0f82fbe.6a40d","type":"ui_switch","z":"bcc6b76b.ea3138","name":"","label":"Omvormer","tooltip":"","group":"56625c74.7d32d4","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"true","offvalueType":"bool","officon":"","offcolor":"","x":1110,"y":780,"wires":[[]]},{"id":"84da0e5a.31b04","type":"ds18b20","z":"bcc6b76b.ea3138","name":"Koelkast","sensorid":"28-0516944078ff","timer":"1","x":480,"y":600,"wires":[["620986bd.1efe78","b28d4840.ef9ea8","c38eb4cd.1a71f8"]]},{"id":"56625c74.7d32d4","type":"ui_group","name":"Group 3","tab":"42678669.1270b8","order":1,"disp":true,"width":6},{"id":"42678669.1270b8","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

@Jurg1505. It would be better if you edited your original post, now the correct formatted code is separate from your question.

You need to read Create a single message from separate streams of messages