Arduino sound detect sensor ON/OFF LED Tutorial -

Sound Detection Sensor Module
The Sound sensor module is a simple microphone. Based on the power amplifier LM393 and the electret microphone, it can be used to detect whether there is any sound that beyond the threshold. The threshold can be adjusted by the on-board potentiometer.
    Adjust the on-board potentiometer to adjust the sensitivity. The module output HIHG/LOW when the voice is Lower/higher than the threshold set by the potentiometer.
Please note that this sensor can only outputs if there is sound that beyond the threshold, but not the loudness and frequency

Schematic diagram


- Arduino board
- Sound Sensor Module  🛒→
- LED 
- Resistor 220 Ω
- Breadboard
- Jumper wires

Arduino Sketch

int soundSensor = 2;
int LED = 7;
bool isLEDOn = false;
void setup() 
  pinMode (soundSensor, INPUT);
  pinMode (LED, OUTPUT);
  digitalWrite( LED,LOW);
void loop()
  int statusSensor = digitalRead (soundSensor);
  if (statusSensor == 1)
       if( isLEDOn == false){
          isLEDOn = true;
          digitalWrite(LED, HIGH);
          isLEDOn = false;
          digitalWrite(LED, LOW);