How to build a clap switch using Arduino

Arduino KlatschschalterToday, there is again a small Arduino craft project. This time, following the motto: “Soon it will clap, but no applause!” Because when you’ve finished reading the article and clap your hands, then your lamps should switch on and off.
The project originated from the (presumably nerd-specific) “emergency”, in which I found myself for some time and which looked like this: You want to go into the bed at night, but firstly you must turn on the light of the bedroom to be able to find the switch of the bedside lamp. Then you switched on the bedside lamp and run to the bedroom’s door again to turn off the bedroom light. You already notice the bedroom light is really just a means to an end.
As a clever computer scientists and hobbyists, one feels as though their relentless drive […]