Description
Detect sound with your Arduino using the KY-038 Sound Sensor Module. It has an electret microphone and an LM393 comparator on board, so when the sound around it crosses the level you set, it gives a clean HIGH / LOW digital signal that your Arduino can read on one pin. It is a simple circuit for students in Pakistan who want to build clap switches, sound alarms and voice-controlled lights.
Key features
- Electret microphone — picks up sound, claps and knocks around the module.
- LM393 comparator — compares the sound level with your set point and gives a clean digital output.
- Digital output (DO) — one digital pin, HIGH when sound is detected, LOW when it is quiet. This variant has digital output only — there is no analog output pin on this module.
- Sensitivity potentiometer — turn the onboard potentiometer to set your own detection level, from a loud clap to a soft tap.
- Power and output LEDs — the LEDs show at a glance that the module has power and when sound is detected.
- Works on 3.3–5V — runs directly from your Arduino’s 5V pin.
How to connect
| KY-038 pin | Connect to Arduino |
|---|---|
| VCC | 5V |
| GND | GND |
| DO | D2 (any digital pin) |
Read the DO pin with digitalRead() in your sketch. When the sound crosses the level set on the potentiometer, DO goes HIGH.
How it works
The microphone turns sound into a small electrical signal. The LM393 comparator checks that signal against the level set by the potentiometer. Louder than the set level, the output goes HIGH; quieter, it stays LOW. Your Arduino sketch then decides what to do — switch a light on, sound a buzzer, or count the claps.
What you can build
- Clap switch — clap once to switch a light or a fan on, clap again to switch it off.
- Voice-controlled room light — switch the room light with a clap or a sound. This is the sound sensor used in the Voice-Controlled Room Light project in our FYP Project Idea Book.
- Sound alarm — sound a buzzer when a loud noise is detected.
- Smart home projects — add sound control to any Arduino smart home or automation project.
Who is it for
School students, college students, engineering students and beginners in Pakistan who want an easy circuit for their first sensor project, semester project or science exhibition model.
You may also need
- Arduino UNO R3 SMD Board Kit — the board used with this sensor.
- FYP Project Idea Book — 42 project ideas, including the Voice-Controlled Room Light that uses this sound sensor.
- IR Sensor Module — another easy sensor for your smart home and automation projects.
- LDR Light Sensor Module — detect light levels and build automatic lights.
Delivery
Delivery all over Pakistan — Rs 450, 3–4 working days. Cash on Delivery and Direct Bank Transfer available.
Need help?
Message us on WhatsApp at +92-336-4459320 and we will help you connect and use this sensor. Need the project built for you? A ready-made system is available on order — contact us. Components are also available in our store.
Frequently Asked Questions
What is the price of the KY-038 Sound Sensor Module in Pakistan?
Rs 130. Delivery is Rs 450 all over Pakistan, in 3–4 working days, with Cash on Delivery available.
How do I connect the KY-038 to Arduino?
Connect VCC to 5V, GND to GND, and DO to any digital pin such as D2. Then read the pin with digitalRead() — HIGH means sound was detected.
What does the DO output mean?
DO is a digital output. It goes HIGH when the sound is louder than the level set on the potentiometer, and stays LOW when it is quiet.
Can the KY-038 understand words or voice commands?
No. It only detects sound level — claps, knocks and loud sounds. For real voice commands you need a Voice Recognition Module V3, which recognises voice commands you train it with.
How do I set the sensitivity?
Turn the blue potentiometer on the module with a small screwdriver. One way makes it more sensitive, the other way less — test with a clap and adjust until it triggers the way you want.
Can a beginner use the KY-038?
Yes. It needs only three wires and one digital pin, and the example sketches are short. It is a good first sensor for school and college students.





Reviews
There are no reviews yet.