The Magic Wand Sensor does exactly that ... can be a fun project for those interested in electronics. It involves gathering the necessary parts, such as a microcontroller, sensors, and other ...