The first thing that YOU need to do is read this, restructure your code so that you have a clean void loop and a timer to call your new function that will take sound level readings and display them:
Once you’ve done this then post your updated code (correctly formatted of course). We can’t do this for you, because we don’t have your hardware to test the re-formatted code.
Pete.