Tring to build a sound activated servo but code won't work

When I said about dragging in an image I meant an image that was stored on your computer, not one from some external site.

Still waiting to see your schematic and an explanation of what you are expecting from your code.

You take a measurement and then you do not use that measurement to affect anything.

As we don’t know what you want to do with that information it is hard to say how to fix it.