the following code and circuit does not work , instead LED blinks continuously without clap, even blinks after removing all components with GND and pin 7 connection.
const int analogInPin = A0; // Analog input pin 0
int sensorValue = 0;
DDRD = 0xFF;
sensorValue = analogRead(analogInPin); //read ADC value on channel 0
if (sensorValue > 60)
PORTD ^= (1 << 7); //If there is a peak toggle the LED on and OFF on pin7.