Gravity: Digital Infrared Distance Sensor (10cm)

Digital IR edge/obstacle sensor with 2–10 cm detection range and digital output. Designed for robot edge detection to prevent falls. Includes breakout board and digital sensor cable.
Pinout
- VCC
Supply input for the Gravity SEN0042 edge-detection sensor. DFRobot wiki specifies supply voltage 2.7-6.2V; schematic exposes J1 power net. Source: https://wiki.dfrobot.com/sen0042/
Type · PowerVoltage · 2.7-6.2V - GND
Ground reference for the Gravity SEN0042 board. DFRobot SEN0042 schematic shows J1 ground net. Source: https://dfimg.dfrobot.com/wiki/17181/SEN0042_edge-detection-sensor_schematics_1.0.pdf
Type · GroundVoltage · 0V - Ddigital output
Digital output to host controller. DFRobot wiki says the sensor provides a simple digital output connected to an Arduino digital pin; signal voltage is Vcc-0.6V high and 0.6V low. Source: https://wiki.dfrobot.com/sen0042/
Type · SignalVoltage · High: VCC-0.6V; Low: 0.6V
| Pin | Type | Function | Voltage |
|---|---|---|---|
| VCC | Power | Supply input for the Gravity SEN0042 edge-detection sensor. DFRobot wiki specifies supply voltage 2.7-6.2V; schematic exposes J1 power net. Source: https://wiki.dfrobot.com/sen0042/ | 2.7-6.2V |
| GND | Ground | Ground reference for the Gravity SEN0042 board. DFRobot SEN0042 schematic shows J1 ground net. Source: https://dfimg.dfrobot.com/wiki/17181/SEN0042_edge-detection-sensor_schematics_1.0.pdf | 0V |
| Ddigital output | Signal | Digital output to host controller. DFRobot wiki says the sensor provides a simple digital output connected to an Arduino digital pin; signal voltage is Vcc-0.6V high and 0.6V low. Source: https://wiki.dfrobot.com/sen0042/ | High: VCC-0.6V; Low: 0.6V |
Pin details
3 connections- VCC
Supply input for the Gravity SEN0042 edge-detection sensor. DFRobot wiki specifies supply voltage 2.7-6.2V; schematic exposes J1 power net. Source: https://wiki.dfrobot.com/sen0042/
PowerVoltage · 2.7-6.2V - GND
Ground reference for the Gravity SEN0042 board. DFRobot SEN0042 schematic shows J1 ground net. Source: https://dfimg.dfrobot.com/wiki/17181/SEN0042_edge-detection-sensor_schematics_1.0.pdf
GroundVoltage · 0V - Ddigital output
Digital output to host controller. DFRobot wiki says the sensor provides a simple digital output connected to an Arduino digital pin; signal voltage is Vcc-0.6V high and 0.6V low. Source: https://wiki.dfrobot.com/sen0042/
SignalVoltage · High: VCC-0.6V; Low: 0.6V
Start wiring
I2C · SPI · Single data line · 3.3 – 5 V · Breakout
Pimoroni describes its VL53L1X breakout as a compact time-of-flight distance sensor with I²C address 0x29, 4–400 cm range, 27° field of v…
Module pins: VCC, GND, D / digital output. Schematik maps them to your board in the app.
Distance sensors
176 other optionsAbout 180 listings spanning VL53-series ToF breakouts, HC-SR04 and MaxSonar ultrasonics, 360° triangulation LiDARs, IR proximity sensors, 24GHz mmWave presence detection and laser break-beam sensors.
25m Long Distance ToF Laser Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant) visual preview25m Long Distance ToF Laser Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant)
4-20HR-MaxSonar-WRMI MB7489 Waterproof Ultrasonic Distance Sensor (50~500cm, IP67) visual preview4-20HR-MaxSonar-WRMI MB7489 Waterproof Ultrasonic Distance Sensor (50~500cm, IP67)
4-20SC-MaxSonar-WRMI MB7789 Ultrasonic Distance Sensor visual preview4-20SC-MaxSonar-WRMI MB7789 Ultrasonic Distance Sensor
5.8GHz Microwave Radar Module visual preview5.8GHz Microwave Radar Module
50m TOF Laser Ranging Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant) visual preview50m TOF Laser Ranging Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant)
5V Metal Proximity Switch visual preview5V Metal Proximity Switch
A02YYUW Waterproof Ultrasonic Sensor (IP67, 3~450cm, UART) visual previewA02YYUW Waterproof Ultrasonic Sensor (IP67, 3~450cm, UART)
Adafruit VL53L0X Time of Flight Distance Sensor - ~30 to 1000mm visual previewAdafruit VL53L0X Time of Flight Distance Sensor - ~30 to 1000mm
Adjustable IR Reflection Sensor (3-80cm) visual previewAdjustable IR Reflection Sensor (3-80cm)
Background Suppression Photoelectric Sensor (30~120mm) visual previewBackground Suppression Photoelectric Sensor (30~120mm)
BOSON: Ultrasonic Distance Sensor i22 visual previewBOSON: Ultrasonic Distance Sensor i22
Capacitive Proximity Sensor (1-10 mm) visual previewCapacitive Proximity Sensor (1-10 mm)
Related groups
4 groups
BOSON: Heart Rate Monitor Sensor i20 visual previewBiometrics
UART/I2C fingerprint modules, MAX30102 PPG breakouts, and analog ECG/EMG front-ends for access control and hobby biometric sensing.
Sensors · Biometric sensors · 26 parts
0.3M Pixel Serial JPEG Camera Module visual previewCameras
Pi CSI modules, USB cameras, MCU-class OV2640/OV5640 boards, on-camera AI like HuskyLens and OpenMV, and thermal or ToF imagers — over 130 listings across very different pipelines.
Sensors · Cameras & vision · 141 parts
0.28 Inch LED Digital DC Voltmeter - Green visual previewPower monitors
INA-series I2C monitors, Hall-effect sensors like the ACS723 and Gravity 20A/50A boards, and non-invasive CT clamps for everything from 3.3V rail telemetry to mains current sensing.
Sensors · Current & voltage · 25 parts
4mm Mini Circular Force Sensor visual previewForce & weight
Interlink-style FSRs, strain-gauge load cells with HX711 amplifiers, and ready-made kits like DFRobot's Gravity I2C 1kg scale — from simple touch detection to accurate mass measurement.
Sensors · Force & weight · 28 parts