Building a clap-activated switch using a sound sensor and a relay, with simple 25ms timing logic that tells a clap apart from stray noise.