Just get an audio jack connector with a switch. With some simple connections, you can have the switch open when the plug is inserted, and closes when you "pull the pin".
Just get an audio jack connector with a switch. With some simple connections, you can have the switch open when the plug is inserted, and closes when you "pull the pin".