You can connect any number of inputs to any node - just keep in mind that your node will only see one input message at a time. There is no built-in msg aggregation simply because there are several input wires.
Instead, the task of aggregating multiple input msgs is handled by specific nodes, some of which are built into the main node server, and some of them have been contributed by the community. Which one to choose depends on the specific use case. For example, should two objects be added to an array or combined into one large object? Only you will know what you want - node -red makes no assumptions, but gives you different nodes to handle many common use cases. For any other use case, there is always a generic function node in which you can use javascript to implement whatever behavior you need.
For your initial question, you are looking for a way to merge 2 useful data from different sensors into one object. The main join and change nodes, as well as the node-red-contrib-bool-gate and node-red-contrib-aggregator found in the thread library, can be used for this.
[{"ID": "87df68f8.51ad58", "type": "inject", "g": "f9a2eec9.c2e26", "name": "," theme ":" smoke "," payload ":" true "," PayloadType ":" BOOL "," repeat ":", "crontab": "," once "false" onceDelay ": 0.1" x ": 160," y ": 1180," wires " : [["da4182a8.47939"]]}, {"identifier": "3ad419ec.1453a6", "type": "inject", "g": "f9a2eec9.c2e26", "name": "," topic " : "smoke", "payload": "false", "PayloadType": "BOOL", "repeat": "," crontab ":", "when" false "onceDelay": 0.1 "x": 170 , "y": 1140, "wires": [["da4182a8.47939"]]}, {"identifier": "a45b3cb0.f3312", "type": "inject", "g": "f9a2eec9.c2e26" , "name": "," topic ":" pace "," payload ":" 65 "," PayloadType ":" number "," repeat ":", " crontab ":", "once" false "onceDelay": 0.1 "x": 160, "y": 1220, "wires": [["da4182a8.47939"]]}, {"identifier": " a3b07d81.e6b17 "," type ":" inject "," g ":" f9a2eec9.c2e26 "," name ":", "theme": "pace", "payload": "75", "PayloadType": "Num" "repeat": "," crontab ":", "once" false "onceDelay": 0.1 "x": 160, "y": 1260, "wires": [["da4182a8. 47939 "]]}, {" id ":" da4182a8.47939 "," type ":" join "," z ":" f9a2eec9.c2e26 "," name ":" join payloads "," mode ":" custom "" Buoy ld ":" object "" property ":" payload "," PropertyType ":" message "," key ":" topic "," carpenter ":" \ n "," joinerType ":" str "," accumulate " : true, timeout: "," counting ":" 2 "," reduceRight "false" reduceExp ":", "reduceInit": "," reduceInitType ":", "reduceFixup": "," x " : 430, "y": 1200, "wires": [["" 315c9ce3.570d64 "," 50f981b4.be654 "]]}, {" identifier ":" 315c9ce3.570d64 "," type ":" switch "," z ":" f9a2eec9.c2e26 "," name ":" Trigger Alarm? "," property ":" payload.temp> 70 and payload.smoke "," propertyType ":" jsonata ", rules": [{"T ":" true "}]," checkall ":" true "," repair "false" outputs ": 1," X ": 640," y ": 1200," wires ": [[" "50f981b4.be654"] ]}, {"identifier": "50f981b4.be654", "type": "debug", "g": "f9a2eec9.c2e26", "name": "," ac ivny ": true," tosidebar ": true," console "false" tostatus "false" full ":" false "," x ": 690," y ": 1260," Wire ": []}]