New to Arduino Sound detection project

Thanks for the reply so far I will make a couple of mods and see how it goes, and yes my posted sketch
it compiled without problems