If you want to detect a gesture, like dancing or waving a magic wand, you might try a simple vibration sensor, which triggers each time the spring inside shakes around.
For more complex and precise gesture sensing, consider an accelerometer module like the FLORA nine-degrees-of-freedom sensor.
Text editor powered by tinymce.