

The KY-037 is a high-sensitivity sound sensor module designed to detect sound levels and convert them into an analog voltage output. It features a built-in microphone and an onboard potentiometer for sensitivity adjustment. This module is widely used in sound-activated projects, such as voice-controlled devices, audio level monitoring, and sound-activated switches. 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 specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5V |
| Output Type | Analog and Digital |
| Microphone Type | Electret Condenser Microphone |
| Sensitivity Adjustment | Onboard Potentiometer |
| Dimensions | 38mm x 15mm x 13mm |
The KY-037 module has four pins, as described in the table below:
| Pin | Name | Description |
|---|---|---|
| 1 | AO | Analog Output: Outputs an analog voltage proportional to the detected sound. |
| 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. |
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 a voltage.DO pin to a digital input pin on your microcontroller to detect sound above 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
// Define pin connections
const int analogPin = A0; // Connect AO pin to A0 on Arduino
const int digitalPin = 2; // Connect DO pin to digital pin 2 on Arduino
int soundLevel; // Variable to store analog sound level
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read analog sound level
soundLevel = analogRead(analogPin);
// Read digital output (HIGH or LOW)
int soundDetected = digitalRead(digitalPin);
// Print analog sound level to Serial Monitor
Serial.print("Analog Sound Level: ");
Serial.println(soundLevel);
// Print digital output status to Serial Monitor
if (soundDetected == HIGH) {
Serial.println("Sound Detected!");
} else {
Serial.println("No Sound Detected.");
}
delay(500); // Delay for readability
}
No Output from the Module
VCC and GND connections).Erratic Digital Output
Analog Output Not Changing
AO pin is connected to an analog input pin on the microcontroller.Q: Can the KY-037 detect specific frequencies?
A: No, the KY-037 is designed to detect general sound levels and does not differentiate between specific frequencies.
Q: How do I increase the detection range?
A: You can increase the sensitivity using the onboard potentiometer, but be cautious of false triggers from background noise.
Q: Is the KY-037 compatible with Raspberry Pi?
A: Yes, the KY-037 can be used with Raspberry Pi. Connect the AO pin to an ADC module (since Raspberry Pi lacks built-in analog inputs) or use the DO pin for digital sound detection.
Q: Can I use the KY-037 outdoors?
A: The KY-037 is not weatherproof. If used outdoors, ensure it is protected from moisture and extreme temperatures.
By following this documentation, you can effectively integrate the KY-037 sound sensor module into your projects for reliable sound detection and monitoring.