A lot of clap switch circuits on the Internet are not very sensitive to say the
least.
This circuit is different. It even picks up background sounds from the TV. It needs no less than 12
volt to work properly.
Sound is picked up by a electret condensor mic and sends out an audio signal.
The input to the first op-amp is filtered for high frequency signals (high pass filter)
and rejects low frequency signals. The cutoff frequency is 41 Hertz.
The filtered input voltage signal is applied to the non-inverting (+) input terminal. The result of this is that the output signal is "in-phase" with the input signal. Feedback control is achieved by applying a small part of the output voltage signal back to the inverting (-) input terminal via a Rf - R2 voltage divider network, in our case the 2.2M potentiometer (I replaced it by a 1.5M resitor) and 5.6K resistor. The gain is 1+1500/5.6 = 269.  
This diagram and the instructions to build your own 555 timer come from instructables website. The diagram is not exactly the same as the bipolar version of the original chip, but it comes close with two comparators, a S-R latch, a simple discharge, reset and output circuit.
In the middle we see the S-R latch (red), on the left (blue) and right side (green) we have the two comparators. Two transistors service the output (purple), one transistor and resistor for the reset (yellow) and the same for the discharge (orange).
With MIT app inventor you can build your own Android phone apps.
Check out the MIT App Inventor website. You either connect to an existing Wifi network, like the esp32 and enter its local IP-address or you connect your phone to the esp32 Access Point and enter the password. The IP-Address of the AP is always 192.168.4.1
You enter SSID and password of your local wifi network or AP from your phone with the 4x4 keyboard
>>> Arduino IDE code <<<