Component guide · Beginner · 3 min read
Sound Sensor and Microphone Modules Explained

By Geekobot Learning Team · Updated 24 Oct 2026
On this page
Sound sensor modules turn sound into a voltage. The basic KY-038 uses an electret microphone and an LM393 comparator, so its digital output detects loud sounds such as a clap. For actual audio levels, use an amplified microphone board such as the MAX4466 or the auto-gain MAX9814, read on an analog pin. For voice or audio recording on ESP32, use an INMP441 digital I2S microphone.
Key specs at a glance
- KY-038 / KY-037
- Electret mic + LM393; AO and DO; clap or knock detection
- MAX4466
- Adjustable-gain mic amp, output centred at VCC/2
- MAX9814
- Automatic gain control, 40/50/60 dB gain settings
- INMP441
- Digital I2S MEMS microphone, 3.3 V
- Supply
- 2.4 to 5.5 V depending on module (INMP441 3.3 V)
- Not included
- Calibrated dB SPL readings
Which module do you need?
| Module | Output | Good for | Not good for |
|---|---|---|---|
| KY-038 / KY-037 | Digital threshold + weak analog | Clap switches, knock alarms | Measuring loudness or audio |
| MAX4466 | Analog audio | Sound level meters, music-reactive LEDs | Very loud and very quiet rooms together |
| MAX9814 | Analog with auto gain | Voice pickup at varying distances | Measuring true loudness (AGC changes gain) |
| INMP441 | I2S digital | ESP32 voice, recording, FFT | Arduino Uno (no I2S) |
- KY-038 / KY-037
- Output:
- Digital threshold + weak analog
- Good for:
- Clap switches, knock alarms
- Not good for:
- Measuring loudness or audio
- MAX4466
- Output:
- Analog audio
- Good for:
- Sound level meters, music-reactive LEDs
- Not good for:
- Very loud and very quiet rooms together
- MAX9814
- Output:
- Analog with auto gain
- Good for:
- Voice pickup at varying distances
- Not good for:
- Measuring true loudness (AGC changes gain)
- INMP441
- Output:
- I2S digital
- Good for:
- ESP32 voice, recording, FFT
- Not good for:
- Arduino Uno (no I2S)
Wiring and reading
KY-038: VCC to 5 V or 3.3 V, GND to GND, DO to a digital pin. Turn the trimmer until the LED just goes off in a quiet room; a clap then pulses DO. The pulse is short, so read it with an interrupt or a fast loop.
MAX4466 / MAX9814: the output sits at about half the supply with silence and swings above and below it with sound. Take many fast analogRead() samples over about 50 ms and use the peak-to-peak value as loudness. Power the mic from the cleanest supply available, as noise from Wi-Fi or a USB port shows up in the signal.
INMP441: connect SCK, WS and SD to three ESP32 GPIO pins, L/R to GND for the left channel, and VDD to 3.3 V. Use the ESP32's I2S driver to read samples.
Measuring decibels
None of these modules gives a calibrated dB SPL value out of the box. To build a rough sound meter, record peak-to-peak readings next to a phone or handheld sound level meter at a few levels, and fit a curve. Remember that dB is logarithmic: doubling the voltage adds about 6 dB. For a music-reactive WS2812B strip, a MAX4466 with a short averaging window is usually enough.
Try it: dB converter calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Trying to measure loudness with the KY-038 digital pin.
- Reading the analog output once instead of peak-to-peak over a window.
- Using a MAX9814 for dB measurement while its auto gain is active.
- Powering the mic from a noisy supply.
- Connecting an INMP441 to 5 V.
Frequently asked questions
Can a sound sensor measure decibels?
Not directly. Amplified mic modules give a relative level; you must calibrate against a sound level meter to estimate dB.
Why does my KY-038 analog output barely change?
Its analog output is the microphone signal with little amplification. Use a MAX4466 or MAX9814 board for useful levels.
What microphone should I use with ESP32?
The INMP441 I2S digital microphone gives clean audio for voice and recording projects.
How do I make a clap switch?
Use a KY-038's digital output on an interrupt pin and toggle a relay when two pulses arrive within about a second.
What is the difference between MAX4466 and MAX9814?
The MAX4466 has fixed gain set by a trimmer. The MAX9814 adjusts gain automatically so quiet and loud sounds give a similar output level.
Parts for this guide
- ₹20View
Calculators
Terms in this guide
Projects that use it
Put this into practice: 44 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- Analog Devices (Maxim) MAX4466 and MAX9814 datasheets
- TDK InvenSense INMP441 datasheet
- Texas Instruments LM393 datasheet
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

