

The KY-037 is a sound sensor module designed to detect sound levels and convert them into an analog voltage output. It features a high-sensitivity microphone and an onboard potentiometer for adjusting the sensitivity. This module is widely used in projects requiring sound detection, such as sound-activated switches, audio level monitoring, and voice-activated systems. Its ease of use and compatibility with microcontrollers like Arduino make it a popular choice for hobbyists and professionals alike.








The KY-037 sound sensor module has the following key technical specifications:
| Parameter | Value | 
|---|---|
| Operating Voltage | 3.3V - 5V | 
| Output Type | Analog and Digital | 
| Microphone Type | High-sensitivity condenser mic | 
| Adjustable Sensitivity | Yes (via onboard potentiometer) | 
| Dimensions | 38mm x 15mm x 13mm | 
The KY-037 module has four pins, as described in the table below:
| Pin | Label | Description | 
|---|---|---|
| 1 | AO | Analog Output: Outputs an analog voltage proportional to the detected sound level. | 
| 2 | GND | Ground: Connect to the ground of the power supply or microcontroller. | 
| 3 | VCC | Power Supply: Connect to a 3.3V or 5V power source. | 
| 4 | DO | Digital Output: Outputs a HIGH or LOW signal based on the sound threshold set by the potentiometer. | 
VCC pin to a 3.3V or 5V power source and the GND pin to ground.AO pin to an analog input pin on your microcontroller to read the sound level as an analog voltage.DO pin to a digital input pin on your microcontroller to detect sound events based on the threshold set by the potentiometer.Below is an example of how to use the KY-037 with an Arduino UNO to read both analog and digital outputs:
// KY-037 Sound Sensor Example with Arduino UNO
// Connect AO to A0, DO to D2, VCC to 5V, and GND to GND on the Arduino.
const int analogPin = A0;  // Pin connected to AO (Analog Output)
const int digitalPin = 2;  // Pin connected to DO (Digital Output)
int soundLevel;            // Variable to store analog sound level
int soundDetected;         // Variable to store digital sound detection
void setup() {
  pinMode(digitalPin, INPUT);  // Set digital pin as input
  Serial.begin(9600);         // Initialize serial communication
}
void loop() {
  // Read the analog sound level
  soundLevel = analogRead(analogPin);
  // Read the digital sound detection (HIGH or LOW)
  soundDetected = digitalRead(digitalPin);
  // Print the analog sound level to the Serial Monitor
  Serial.print("Analog Sound Level: ");
  Serial.println(soundLevel);
  // Print the digital sound detection status
  if (soundDetected == HIGH) {
    Serial.println("Sound Detected!");
  } else {
    Serial.println("No Sound Detected.");
  }
  delay(500);  // Wait for 500ms before the next reading
}
No Output from the Module
Digital Output Always HIGH or LOW
Inconsistent Analog Readings
Module Not Detecting Sound
Q: Can the KY-037 detect specific frequencies of sound?
A: No, the KY-037 is not frequency-selective. It detects overall sound levels and cannot differentiate between specific frequencies.
Q: Is the KY-037 compatible with 3.3V microcontrollers like ESP32?
A: Yes, the KY-037 can operate at 3.3V, making it compatible with 3.3V microcontrollers.
Q: How do I know if the module is working?
A: You can monitor the digital output pin (DO) with an LED or check the analog output pin (AO) using a multimeter or microcontroller.
Q: Can I use the KY-037 outdoors?
A: The KY-037 is not weatherproof. If used outdoors, it should be protected from moisture and extreme temperatures.
By following this documentation, you can effectively integrate the KY-037 sound sensor module into your projects and troubleshoot common issues.