If you're seeing this message, it means we're having trouble loading external resources for Khan Academy.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Sound sensor

Now we can get to know the sound sensor with a simple challenge

Sound sensor

The sound sensor can be used to control switch statements. If you setup your switch statement correctly using a sound sensor you will be able to build this simple drum partner.

To do this you must build a program which beeps when it detects a loud tap/clap. It will require you to use a single loop block and switch statement which is controled by a sound sensor. Good luck!

Post any question below.