Awesome! I attempted the same approach, but after discovering a cheap gas concentration sensor (MQ-135, tunable to CO2) I abandoned the audio approach for a minimum of data processing. I get very accurate bubble detection and highly recommend it :-)
Or is the sensor in the fermenter itself and you're kind of measuring the pressure?