SEN0239 – Gravity: Digital Adjustable Infrared Proximity Sensor for Robotics Obstacle Avoidance (0~200cm, Arduino / Raspberry Pi)

Gravity: Digital Adjustable Infrared Proximity Sensor for Robotics Obstacle Avoidance (0~200cm, Arduino / Raspberry Pi)

DFRobot Gravity Sensor & Actuator System

  • -15~60 ℃
  • 0~200 cm
  • XH2.54-3Pin
  • -25~75 ℃
Manufacturer part number
SEN0239
Manufacturer
DFRobot
Operating Temperature
-15~60 ℃
Detection range
0~200 cm

This small, affordable Arduino-compatible infrared distance sensor detects 0-200 cm. Ideal for indoor projects and robotics, it features adjustable range and easy setup.

Product overview

Gravity: Digital Adjustable Infrared Proximity Sensor for Robotics Obstacle Avoidance (0~200cm, Arduino / Raspberry Pi)

SKU: SEN0239

- +

This small, affordable Arduino-compatible infrared distance sensor detects 0-200 cm. Ideal for indoor projects and robotics, it features adjustable range and easy setup.

Purchase this product and earn 129 reward points, which are tied to VIP membership program. Learn More >

Introduction Specification Shipping List Documents Resource Review

Introduction

This Gravity: IR sensor provides 0-200cm adjustable detection via a simple screw adjustment. Designed for industrial assembly lines and robotic navigation, its 3-5V wide voltage input ensures compatibility with PLC systems and Arduino. The PNP normally open output simplifies integration into automated workflows, while ±5% accuracy outperforms standard photoelectric sensors in dusty environments. Ideal for warehouse inventory monitoring and AGV obstacle avoidance.

Useful for robotics, interactive media, industrial assembly line, etc. Infrared wave length is part of the Sun's natural light spectrum. While is a nice fit for indoor projects, outdoors with plenty of sun light and reflective surfaces on the sight is not advised. It's incredibly repurposable and can be used for a lot of different projects. The adjustable screw on it's back makes it very convenient for different purposes. Digital read on your Arduino pin and you are ready to go. Good sensor choice for quick prototyping.

Use it on a robot for wall detection and wall follower, or as some of the projects listed below as a trigger system. It's round shape with the screw holders make it a good choice for a home-made assembled robot, with a hole of it's diameter and the holders you can place it aiming at different positions on a robot. Or even place it near your PC to turn on and off your monitor.

To ease the difficult of using this sensor, a Gravity Interface is adapted to allow plug & play. The IO expansion shield is the best match for this sound sensor connecting to your Arduino.

Specification

Output Form: PNP normally open

Signal Type: Digital signal

Operating Voltage: 3~5V

Interface: XH2.54-3Pin

Detection range: 0~200 cm

Switch Level: 0, No obstacles in the area; 1, There are obstacles in the area.

Operating Temperature: -15~60 ℃

Temperature Effect: Within -15 ℃ to + 60 ℃, the detection distance is below 10% at + 25 ℃

Storage Temperature: -25~75 ℃

Humidity: 35% ~ 95% RH

Size: 75 * Φ18 mm

Shipping List

Gravity: Digital Adjustable Infrared Proximity Sensor for Arduino (0~200 cm) x1

Documents

Product Wiki

Resource

All Projects Blog Tutorial Course Media

Blog LattePanda + proximity sensing device

DFRobot

Feb 07, 2018

Review

Carl.Parsons Aug 05, 2026

Sensor was easy to install and durable. using it in food processing automation

Gravity More Gravity Projects Gravity Projects

Gravity: Digital Adjustable Infrared Proximity Sensor for Robotics Obstacle Avoidance (0~200cm, Arduino / Raspberry Pi)

See all specifications

Highlights

  • Detection range: 0~200 cm
  • Humidity: 35% ~ 95% RH
  • Interface: XH2.54-3Pin
  • Operating Temperature: -15~60 ℃
  • Operating Voltage: 3~5V
  • Output Form: PNP normally open

Good to know before integrating

  • Thermal: rated operating range -15~60 ℃ — check it against the installation environment.

See also

Technical questions

Ask a question

No published question about this part yet. Questions are reviewed before publication.

Request a quote