I am currently using the DAC+ADC to record sound from my microphone. Everything is working perfectly on my raspberry pi but now I would like to detect if a microphone is plugged into the DAC+ADC or not. I saw that I could use the value of the input resistance but I don't think it is possible to have access to this value (correct me if I'm wrong!).
How could I check if my microphone is plugged or not? Should I use some signal processing to compute the sound level and put a threshold on it?
I thank you all in advance!