ESP32 Starter Kit
5. Test Result
After connecting the wiring and uploading code, open serial monitor to set baud rate to 9600, the analog value will be
displayed.
6. Expansion Code
The commonly seen corridor light is a kind of sound controlled light. Meanwhile, it also includes a photoresistor.
Differed from that, here we establish a model that an LED is only affected by sound. When the analog volume exceeds
100, LED lights up for 2s and then goes off.
Flow Chart
9.2. Scratch Project 281