Component guide · Intermediate · 3 min read
PAJ7620U2 Gesture Recognition Sensor Modules

Generic I2C Module, Elecrow Crowtail Gesture 2.0 and DFRobot Gravity Gesture and Touch Sensor
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The PAJ7620U2 recognises hand gestures in front of it, up to about 15 cm away: up, down, left, right, forward, backward, clockwise, anticlockwise and wave. It does the recognition itself and reports the gesture over I2C, so even an Arduino Uno can use it. The DFRobot Gravity gesture and touch sensor is a separate UART design that adds touch pads.
Key specs at a glance
- Chip
- PixArt PAJ7620U2
- Gestures
- 9 built-in gestures
- Range
- About 5 to 15 cm
- Interface
- I2C, address 0x73
- Supply
- 3.3V to 5V on most modules
- DFRobot version
- UART, gestures plus touch pads
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
What the PAJ7620U2 gesture sensor modules is
The PixArt PAJ7620 gesture sensor recognises nine hand gestures, such as up, down, left, right and wave, at 5 to 15 cm over I2C, for touchless control.
Use it for touchless light switches, page turning, robot commands or a kiosk control where buttons get dirty. Wave your hand clearly across the sensor at a steady speed; very fast or very slow moves are missed.
Mount the module so its orientation matches your idea of up and down, or swap the directions in code. Strong sunlight reduces range.
PAJ7620U2 gesture sensor modules pinout
The pins on the PAJ7620U2 gesture sensor modules and what each one does.
| Pin | Function |
|---|---|
| VCC | 3.3-5V |
| GND | Ground |
| SDA | I2C data |
| SCL | I2C clock |
| INT | Gesture interrupt, optional |
- VCC
- 3.3-5V
- GND
- Ground
- SDA
- I2C data
- SCL
- I2C clock
- INT
- Gesture interrupt, optional
Wiring the PAJ7620U2 gesture sensor modules
Keep the sensor window clean and shaded from direct sunlight.
| PAJ7620U2 gesture sensor modules pin | Connection | Note |
|---|---|---|
| VCC | 5V | Or 3.3V on ESP32 |
| GND | GND | Common ground |
| SDA | A4 | GPIO21 on ESP32 |
| SCL | A5 | GPIO22 on ESP32 |
- VCC
- Connection:
- 5V
- Note:
- Or 3.3V on ESP32
- GND
- Connection:
- GND
- Note:
- Common ground
- SDA
- Connection:
- A4
- Note:
- GPIO21 on ESP32
- SCL
- Connection:
- A5
- Note:
- GPIO22 on ESP32
Example code
Uses the RevEng PAJ7620 library from the Library Manager. Add the other gesture cases the same way.
#include <Wire.h>
#include "RevEng_PAJ7620.h"
RevEng_PAJ7620 sensor;
void setup() {
Serial.begin(9600);
if (!sensor.begin()) {
Serial.println("PAJ7620 not found");
while (1);
}
}
void loop() {
Gesture g = sensor.readGesture();
switch (g) {
case GES_UP: Serial.println("Up"); break;
case GES_DOWN: Serial.println("Down"); break;
case GES_LEFT: Serial.println("Left"); break;
case GES_RIGHT: Serial.println("Right"); break;
case GES_WAVE: Serial.println("Wave"); break;
default: break;
}
delay(50);
}Setup and tuning
VCC 3.3 V (modules accept 5 V through a regulator), GND, SDA and SCL.
use the RevEng PAJ7620 or Seeed Grove Gesture library.
move your hand 5 to 15 cm above the sensor at a steady speed.
set the mounting direction in code so up and down match your project.
avoid direct sunlight, which can blind the IR sensor.
What you need
Shop this list5 of 6 found in our store · ₹3,355
PAJ7620U2 Gesture Recognition Sensor Module – I2C Interface: the part this guide coversPAJ7620U2 Gesture Recognition Sensor Module – I2C Interface₹659
Elecrow Crowtail-Gesture 2.0 Module with PAJ7620U2 Sensor – I2C Interface: another version this guide coversElecrow Crowtail-Gesture 2.0 Module with PAJ7620U2 Sensor – I2C Interface₹959
DFRobot Gravity Gesture and Touch Sensor Module – UART Interface: another version this guide coversDFRobot Gravity Gesture and Touch Sensor Module – UART Interface₹1,549- Uno R3 development board: the controller used in the wiring tableFind this part
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Alternatives and when to choose them
- APDS9960 gesture sensor: simpler gestures plus colour.
- VCNL4040 proximity sensors: proximity only.
- IR obstacle sensor: on/off detection.
Common mistakes to avoid
- Moving the hand too fast or too far away.
- Ignoring sensor orientation in code.
- Using it in direct sunlight.
- Feeding 5 V logic to the bare sensor.
Frequently asked questions
Which gestures can the PAJ7620 detect?
Up, down, left, right, forward, backward, clockwise, anticlockwise and wave.
Why are my gestures detected the wrong way round?
The sensor is rotated; swap directions in your code to match mounting.
How far can it detect a hand?
About 5 to 15 cm; farther hands are not recognised reliably.
Does it work in sunlight?
Strong sunlight reduces accuracy because it floods the IR sensor.
Can I use it with ESP32?
Yes. Use I2C at 3.3 V with a common library.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

