# Joining two GPIO inputs using "Join" node to output a single function

**URL:** <https://discourse.nodered.org/t/joining-two-gpio-inputs-using-join-node-to-output-a-single-function/42175>\
**Category:** General\
**Created:** [6 March 2021 22:07 UTC](https://discourse.nodered.org/t/joining-two-gpio-inputs-using-join-node-to-output-a-single-function/42175 "2021-03-06T22:07:46Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![grawsom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grawsom/32/53070_2.png) [@grawsom](https://discourse.nodered.org/u/grawsom)\
**Post date:** [7 March 2021 19:47 UTC](https://discourse.nodered.org/t/joining-two-gpio-inputs-using-join-node-to-output-a-single-function/42175/9 "2021-03-07T19:47:58Z")

</div>

If I understand correctly you have a RPI on the chair, and another RPI remotely about 75 feet, connected together with TCP.

Maybe take a look at this - [Controlling GPIOs on another Raspberry Pi - General - Node-RED Forum](https://discourse.nodered.org/t/controlling-gpios-on-another-raspberry-pi/4190)  
you can use HTTP in/out, MQTT or maybe use the "remote GPIO", and then on device 2 use a function node with an IF statement that checks if "switch on chair" is activated.  
Just an idea - I myself will check out the GPIO stuff.

---

_[View the full topic](https://discourse.nodered.org/t/joining-two-gpio-inputs-using-join-node-to-output-a-single-function/42175)._
