Hello I am working on a little project (Sound Switch) and i need a way to detect that i have plugged in a headphone jack.
I've looked on the net and people suggested that you could measure resistance on the jack or buy the more expensive jack with a mechanical switch, if i would want to go for the cheaper option (resistance) what would i need to test the resistance and if headphones are detected switch my relay
Sorry if its hard to understand.
Thanks Radexito