#define SOUND_IN 7
#define LED_RED 4
void setup() {
pinMode(SOUND_IN, INPUT);
pinMode(LED_RED, OUTPUT);
}
void loop() {
if(digitalRead(SOUND_IN)){
digitalWrite(LED_RED, HIGH);
delay(500);
}else{
digitalWrite(LED_RED, LOW);
}
}