Detect two connector microphone noise level

Hey guys,

I do a lot of parties which means a lot of noise complains over the year.

I am trying to reduce this by adding an ESP8266 with a microphone hooked up on it to detect noise level and turn off the lights on the patio when the noise levels exceeds a treshold.

My issue is that:

I am unable to detect the microphone level using the ADC component.

Could anyone head me on the right direction on how to do this?

Thanks!

Google pointed me to this. Not ESPHome, but the idea is there.

or this one, I hope to work on this project this week.