Arduino microphone sensor analog + digital

I tried a small arduino microphone recently:

Output looks like that:

 

Well explaination how sound sensors work: