[{"id":"ac59f7e267fc3d4b","type":"tab","label":"testfunciton","disabled":false,"info":"","env":[]},{"id":"41758f13d98873e3","type":"link in","z":"ac59f7e267fc3d4b","name":"","links":["4c70d126cbf9865b"],"x":144.56469068001942,"y":129.21984140639202,"wires":[["a922fcdd8a17911b"]]},{"id":"a922fcdd8a17911b","type":"change","z":"ac59f7e267fc3d4b","name":"set payload to Temperature value","rules":[{"t":"move","p":"payload.Temperature","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":319.5498962402344,"y":108.76004219055176,"wires":[["3f40293643e84bc1","22014610d4f238ee","abc25e24e1b4cb8d"]]},{"id":"3f40293643e84bc1","type":"ui_gauge","z":"ac59f7e267fc3d4b","name":"Ambient","group":"f5e2c3bf3d5a99b2","order":9,"width":0,"height":0,"gtype":"donut","title":"Ambient","label":"F","format":"{{msg.payload}}","min":0,"max":"200","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":597.9502750101586,"y":125.72012931960525,"wires":[]},{"id":"5fb069e430ec1040","type":"ui_slider","z":"ac59f7e267fc3d4b","name":"Target","label":"Target Temp","tooltip":"","group":"f5e2c3bf3d5a99b2","order":10,"width":0,"height":0,"passthru":true,"outs":"end","topic":"target","min":0,"max":"200","step":1,"x":369.0841790644309,"y":196.25263093958537,"wires":[["65cb62c27f8a575e","4e2e6f3263e9d0dd"]]},{"id":"65cb62c27f8a575e","type":"debug","z":"ac59f7e267fc3d4b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":594.4112667723941,"y":211.86670258056373,"wires":[]},{"id":"1bc3fd3f7de03fa3","type":"function","z":"ac59f7e267fc3d4b","name":"","func":"var glycolA = msg.ambient;\nvar glycolS = msg.target;\n \n if (glycolA>glycolS)\n {\n msg.payload =\"1\";\n } \n else \n {\n msg.payload =\"0\";\n }\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":579.8740353073642,"y":306.6278986621994,"wires":[["bc45c97c3fe28e8e"]]},{"id":"22014610d4f238ee","type":"debug","z":"ac59f7e267fc3d4b","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":572.6054195748493,"y":54.38001605270947,"wires":[]},{"id":"bc45c97c3fe28e8e","type":"debug","z":"ac59f7e267fc3d4b","name":"functionresults","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":816.0087661743164,"y":261.9393939971924,"wires":[]},{"id":"4e2e6f3263e9d0dd","type":"change","z":"ac59f7e267fc3d4b","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"target","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":318.5124053955078,"y":316.3194332122803,"wires":[["1bc3fd3f7de03fa3","b2413d7f8b4d15f4"]]},{"id":"abc25e24e1b4cb8d","type":"change","z":"ac59f7e267fc3d4b","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"ambient","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":757.052197155208,"y":94.76121456668139,"wires":[["1bc3fd3f7de03fa3","e913d344fc808ab8"]]},{"id":"e913d344fc808ab8","type":"debug","z":"ac59f7e267fc3d4b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":867.3881687268442,"y":38.22753664712071,"wires":[]},{"id":"b2413d7f8b4d15f4","type":"debug","z":"ac59f7e267fc3d4b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":484.57440681439056,"y":395.1973438339962,"wires":[]},{"id":"f5e2c3bf3d5a99b2","type":"ui_group","name":"Default","tab":"450ac4c9b5c2acc6","order":1,"disp":true,"width":"11","collapse":false},{"id":"450ac4c9b5c2acc6","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
yes your correct, there is in issue with msg.