
Beginner4/7/2026- Author: IoTSpark Maker
ESP32 + Sound Sensor: Sound Detection (Quick Test Sample Code)
The Sound Sensor module uses an electret microphone to pick up sound, amplified through an LM393 comparator, outputting both a digital signal (DO — triggers when sound exceeds a potentiometer-set threshold) and an analog signal (AO — continuous sound-wave amplitude).
sound-sensoram-thanh
4 steps2 components
The Sound Sensor module uses an electret microphone to pick up sound, amplified through an LM393 comparator, outputting both a digital signal (DO — triggers when sound exceeds a potentiometer-adjustable threshold) and an analog signal (AO — continuous sound-wave amplitude). Unlike a high-quality recording microphone, this module is only suited to detecting whether sound is present or not or measuring relative amplitude — not for recording audio or speech recognition.