

The KY036 is a sound sensor module designed to detect sound levels and convert them into an analog voltage output. It features a built-in microphone and a comparator circuit, making it suitable for both analog and digital sound detection. The module is widely used in applications such as voice-activated systems, sound level monitoring, and noise detection in smart home or IoT projects. Its compact design and ease of use make it a popular choice for hobbyists and professionals alike.








| Pin Name | Pin Type | Description |
|---|---|---|
| AO | Analog Out | Outputs an analog voltage proportional to the detected sound level. |
| DO | Digital Out | Outputs HIGH or LOW based on the sound level and the threshold setting. |
| GND | Ground | Connect to the ground of the power supply. |
| VCC | Power | Connect to a 3.3V or 5V DC power supply. |
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. DO pin to a digital input pin.AO pin provides a continuous voltage that can be read using an ADC (Analog-to-Digital Converter). DO pin outputs HIGH when the sound level exceeds the threshold and LOW otherwise.Below is an example of how to use the KY036 with an Arduino UNO to read both analog and digital outputs:
// KY036 Sound Sensor Example with Arduino UNO
// Reads analog sound level and detects sound threshold using digital output.
const int analogPin = A0; // KY036 AO pin connected to Arduino A0
const int digitalPin = 2; // KY036 DO pin connected to Arduino digital pin 2
int soundLevel = 0; // Variable to store analog sound level
int soundDetected = 0; // Variable to store digital output state
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 state
soundDetected = digitalRead(digitalPin);
// Print sound level and detection status to Serial Monitor
Serial.print("Analog Sound Level: ");
Serial.print(soundLevel);
Serial.print(" | Sound Detected: ");
Serial.println(soundDetected ? "YES" : "NO");
delay(500); // Delay for readability
}
No Output from AO or DO:
Erratic Digital Output (DO):
Low Sensitivity:
Q: Can the KY036 detect specific frequencies (e.g., voice or music)?
A: The KY036 is a general-purpose sound sensor and does not have frequency filtering capabilities. For frequency-specific detection, additional signal processing is required.
Q: Can I use the KY036 with a 3.3V microcontroller?
A: Yes, the KY036 operates at both 3.3V and 5V, making it compatible with most microcontrollers.
Q: How do I know if the potentiometer is set correctly?
A: Monitor the DO pin output while adjusting the potentiometer. When the sound level exceeds the threshold, the DO pin will output HIGH.
By following this documentation, you can effectively integrate the KY036 sound sensor module into your projects for reliable sound detection and monitoring.