Help to setup an electret microphone

Hi all. I’m new to Arduino. Im using electret microphone. I have connected it as it says on this website ElectretMicrophone \ Learning \ Wiring and this is the code i used, its from the internet as well

This is the code to make a LED blink with the music.
You have to set the threshold so it’ sensible enough to make the led blink.

You connect an LED to PIN13 and the Sound Sensor to Analog Pin 0

int led = 13;
int threshold = 500; //Change This
int volume;

void setup() {
Serial.begin(9600); // For debugging
pinMode(led, OUTPUT);

void loop() {

volume = analogRead(A0); // Reads the value from the Analog PIN A0
//Debug mode

digitalWrite(led, HIGH); //Turn ON Led
digitalWrite(led, LOW); // Turn OFF Led


But the LED doestnot blink.

Is it possible to get data printed in the serial monitor

Could please someone help me with that?

Open the Serial Monitor window (at 9600 baud) to read the converted values.