Trigger plugin

I am working on an escape room puzzle design and want to connect two proximity sensors via xlr connectors (three prongs separated) mid-game. My fear is that the arduino will see them as a floating pin and when I connect the sensor plug it will trigger prematurely.

Am I right in this assumption? Do I need to connect them to relays instead?

You must ensure that the pins are not floating.

Could you have a pullup or pulldown resistor hold the input pin in the sensor's inactive state till the sensor is connected?

groundFungus:
Could you have a pullup or pulldown resistor hold the input pin in the sensor's inactive state till the sensor is connected?

I dunno. Good question tho' I have not tried it yet as I figured I would get opinions before driving myself crazy. See if anyone had done something like this already.

groundFungus:
Could you have a pullup or pulldown resistor hold the input pin in the sensor's inactive state till the sensor is connected?

Well the first test with the resistors seems to be working so if it holds great suggestion!