I managed to use the join node with an entry corresponding to the maximum (msg.max), one corresponding to the minimum (msg.min) and one corresponding to the sensor value. Right after a function node comparing the variables. If the temperatures are higher or lower than those defined, a notification is returned. Otherwise, the return is null.
Everything is working as desired. I thank everyone who helped.
the flow is attached. I intend to replace the inject with a mqtt_in node and debug for the notification.
[{"id":"97c9094b.030858","type":"debug","z":"cfbb6e4f.6526a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":690,"y":640,"wires":[]},{"id":"35d180ea.771eb","type":"function","z":"cfbb6e4f.6526a","name":"","func":"const a = msg.payload.max;\nconst b = msg.payload.min;\n\nif(msg.payload.inputValue > a){\n msg.payload = \"Too high\";}\nelse if(msg.payload.inputValue < b){\n msg.payload = \"Too low\";\n} else {\n return null; //dont fire function node output!\n}\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":640,"wires":[["97c9094b.030858"]]},{"id":"531e311f.2b648","type":"join","z":"cfbb6e4f.6526a","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"1","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":350,"y":640,"wires":[["35d180ea.771eb"]]},{"id":"4e185f5e.96629","type":"inject","z":"cfbb6e4f.6526a","name":"temperature","topic":"inputValue","payload":"8","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":700,"wires":[["531e311f.2b648"]]},{"id":"940181a8.f2327","type":"ui_numeric","z":"cfbb6e4f.6526a","name":"","label":"maximum","tooltip":"","group":"91cc4ff3.10673","order":2,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"max","format":"{{value}}","min":0,"max":10,"step":1,"x":140,"y":580,"wires":[["531e311f.2b648"]]},{"id":"2fff4a91.ac2376","type":"ui_numeric","z":"cfbb6e4f.6526a","name":"","label":"minimum","tooltip":"","group":"91cc4ff3.10673","order":3,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"min","format":"{{value}}","min":0,"max":10,"step":1,"x":140,"y":640,"wires":[["531e311f.2b648"]]},{"id":"91cc4ff3.10673","type":"ui_group","z":"","name":"Botão Relé 1","tab":"8f89f7a7.c74cf8","disp":true,"width":"6","collapse":false},{"id":"8f89f7a7.c74cf8","type":"ui_tab","z":"","name":"Relés","icon":"dashboard","disabled":false,"hidden":false}]