

The KY-037 Sound Sensor is a device that detects sound levels and converts them into an electrical signal. It features a high-sensitivity microphone and an adjustable potentiometer to fine-tune the sensitivity. This sensor is widely used in projects requiring sound detection, such as sound-activated switches, noise 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.








| Pin | Name | Description |
|---|---|---|
| 1 | AO (Analog Out) | Outputs an analog signal proportional to the detected sound level. |
| 2 | DO (Digital Out) | Outputs a digital HIGH or LOW signal based on the sound threshold set by the potentiometer. |
| 3 | GND | Ground connection for the sensor. |
| 4 | VCC | Power supply input (3.3V to 5V). |
Connect the Pins:
Adjust the Sensitivity:
Write the Code:
// KY-037 Sound Sensor Example Code
// This code reads the analog and digital outputs of the KY-037 sound sensor
// and prints the values to the Serial Monitor.
const int analogPin = A0; // Connect AO pin to A0 on Arduino
const int digitalPin = 2; // Connect DO pin to D2 on Arduino
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int analogValue = analogRead(analogPin); // Read analog value from AO pin
int digitalValue = digitalRead(digitalPin); // Read digital value from DO pin
// Print the values to the Serial Monitor
Serial.print("Analog Value: ");
Serial.print(analogValue);
Serial.print(" | Digital Value: ");
Serial.println(digitalValue);
delay(500); // Wait for 500ms before the next reading
}
No Output from the Sensor:
Digital Output Always HIGH or LOW:
Inconsistent Readings:
Analog Output Not Changing:
Q: Can the KY-037 detect specific frequencies of sound?
A: No, the KY-037 is designed to detect general sound levels and cannot differentiate between specific frequencies.
Q: How far can the KY-037 detect sound?
A: The detection range depends on the sound intensity and the sensitivity setting. It is best suited for detecting sounds within a few meters.
Q: Can I use the KY-037 with a 3.3V microcontroller like ESP32?
A: Yes, the KY-037 operates at 3.3V to 5V, making it compatible with 3.3V microcontrollers like the ESP32.
Q: Is the KY-037 suitable for outdoor use?
A: The KY-037 is not weatherproof and should be used in indoor environments or protected from moisture and extreme temperatures.
By following this documentation, you can effectively integrate the KY-037 Sound Sensor into your projects and troubleshoot common issues.