

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 voice-activated systems, noise level monitoring, and sound-triggered automation.








The KY-037 Sound Sensor consists of a microphone, a comparator circuit, and an adjustable potentiometer for sensitivity control. It provides both analog and digital outputs for versatile use.
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5V |
| Output Types | Analog (A0), Digital (D0) |
| Microphone Type | Electret Condenser Microphone |
| Sensitivity Adjustment | Via onboard potentiometer |
| Dimensions | 38mm x 15mm x 13mm |
| Pin Name | Description |
|---|---|
| VCC | Power supply pin (3.3V - 5V) |
| GND | Ground pin |
| A0 | Analog output pin (provides a continuous voltage proportional to sound) |
| D0 | Digital output pin (high/low signal based on sound threshold) |
The KY-037 Sound Sensor can be used in a variety of circuits to detect sound levels. It provides both analog and digital outputs, making it suitable for different applications.
Connect the Sensor:
VCC pin to a 3.3V or 5V power source.GND pin to the ground of your circuit.A0 pin for analog output or the D0 pin for digital output, depending on your application.Adjust Sensitivity:
Read Outputs:
A0 pin provides a continuous voltage proportional to the detected sound level.D0 pin outputs a high signal (logic 1) when the sound level exceeds the threshold set by the potentiometer, and a low signal (logic 0) otherwise.Below is an example of how to connect and use the KY-037 Sound Sensor with an Arduino UNO to read both analog and digital outputs.
VCC → 5V on ArduinoGND → GND on ArduinoA0 → A0 on Arduino (for analog readings)D0 → D2 on Arduino (for digital readings)// KY-037 Sound Sensor Example Code
// This code reads both analog and digital outputs from the KY-037 sound sensor
// and prints the values to the Serial Monitor.
const int analogPin = A0; // Analog output pin of KY-037
const int digitalPin = 2; // Digital output pin of KY-037
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int analogValue = analogRead(analogPin); // Read analog value
int digitalValue = digitalRead(digitalPin); // Read digital value
// 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:
False Triggers on Digital Output:
Analog Output is Unstable:
A0 pin and ground to filter out noise.Q: Can the KY-037 detect specific frequencies of sound?
A: No, the KY-037 is designed to detect general sound levels and does not differentiate between specific frequencies.
Q: How do I know if the digital output is working?
A: The onboard LED will light up when the sound level exceeds the threshold set by the potentiometer.
Q: Can I use the KY-037 with a 3.3V microcontroller?
A: Yes, the KY-037 operates at 3.3V - 5V, making it compatible with 3.3V microcontrollers like the ESP32 or Raspberry Pi Pico.
By following this documentation, you can effectively integrate the KY-037 Sound Sensor into your projects for reliable sound detection.