

The KY-034 is a sound sensor module designed to detect sound levels and convert them into an analog voltage output. It is equipped with a microphone and supporting circuitry to amplify and process sound signals. This module is widely used in projects requiring sound detection, such as sound-activated switches, noise level monitoring, and audio-based automation systems. Its compact design and ease of use make it a popular choice for hobbyists and professionals alike.








The KY-034 sound sensor module has the following key technical specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Output Type | Analog voltage |
| Microphone Type | Electret condenser microphone |
| Sensitivity Adjustment | Potentiometer |
| Dimensions | 18mm x 15mm x 13mm |
The KY-034 module has three pins, as described in the table below:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin. Connect to 3.3V or 5V. |
| 2 | GND | Ground pin. Connect to the ground of the circuit. |
| 3 | OUT | Analog output pin. Outputs a voltage proportional to the detected sound level. |
VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.OUT pin to an analog input pin of your microcontroller (e.g., Arduino).OUT pin provides an analog voltage that corresponds to the detected sound level. Higher sound levels result in higher output voltages.Below is an example of how to use the KY-034 with an Arduino UNO to read sound levels and display the values in the Serial Monitor.
// KY-034 Sound Sensor Example with Arduino UNO
// Reads the analog output of the KY-034 and displays the sound level in the Serial Monitor.
const int soundSensorPin = A0; // KY-034 OUT pin connected to Arduino analog pin A0
void setup() {
Serial.begin(9600); // Initialize Serial Monitor at 9600 baud rate
pinMode(soundSensorPin, INPUT); // Set the sound sensor pin as input
}
void loop() {
int soundLevel = analogRead(soundSensorPin); // Read the analog value from the sensor
Serial.print("Sound Level: "); // Print label to Serial Monitor
Serial.println(soundLevel); // Print the sound level value
delay(500); // Wait for 500ms before the next reading
}
analogRead() function returns a value between 0 and 1023, corresponding to the voltage on the OUT pin.No Output Signal
VCC, GND, and OUT pins are properly connected.Inconsistent Readings
Low Sensitivity
Output Always High or Low
Q: Can the KY-034 detect specific frequencies of sound?
A: No, the KY-034 is designed to detect general sound levels and does not differentiate between specific frequencies.
Q: Can I use the KY-034 with a 3.3V microcontroller?
A: Yes, the KY-034 operates at both 3.3V and 5V, making it compatible with 3.3V microcontrollers like the ESP32.
Q: How do I know if the module is working?
A: You can test the module by clapping near the microphone and observing changes in the analog output voltage.
Q: Can I use the KY-034 for voice recognition?
A: No, the KY-034 is not suitable for voice recognition as it only detects sound levels and does not process audio signals.