So I have a switch connected via two wires to a two pin plug which is supposed to go in a two pin socket. One pin of the socket goes to 5V and the other goes to a digital I/O in the Arduino + GND (via 10K). When the switch is pressed and the digital arduino pin goes high, stuff is supposed to happen. Now here's the interesting part, if I touch the 10K arm on the other end of GND, with flesh or anything conducting, the stuff that's supposed to happen starts happening, EVEN IF THERE IS NO PLUG IN THE SOCKET (who needs a switch, switches are overrated!). Basically, the moment something conducting comes in touch with the pin connected to the digital I/O, the process starts. That's a bummer because now I can't even connect the plug in. Interestingly it doesn't happen if I touch the arm of the resistor towards the GND, only happens when I touch the arm of the resistor away from the GND, that too only when the touching medium is conducting. This setup is new but the same circuit I have used countless times without issues. What the hell is happening here?

