I used PAJ7620U2 Gesture Sensor.
PAJ7620U2 Gesture Sensor, gesture recognition function with general I2C interface into a single chip. It can recognize 9 gestures including move up, move down, move left, move right, etc. with a simple swipe of your hand.
(this sensor works with 3.3V)
in most of the mp3 players pressing button sets the pin to LOW, so I connected MP3 Player buttons to Arduino to control it.
you can control any other device instead of MP3 Player.
You can download the code from the YouTube video description.
