DF Robot IR Proximity Sensor 1- 400cm

This digital laser proximity sensor offers a longer sensing distance and comes with an indicator for showing real-time sensor status. Keep pressing down the on-board button for 3 seconds, then the indicator starts to flash and the detection distance can be adjusted within 1 to 400cm as per your need. The sensor can automatically detect and save the distance between it and the obstacle ahead.

In addition, the sensor features digital signal output, which works well with the Arduino IO expansion board. It can be widely used in applications like smart homes, house security, intelligent detection and control, robot obstacle, and so on.

The sensor is based on the principle of diffuse reflection of laser on the object. When a person or object enters the sensing range in front of the sensor, the sensor immediately determines that there is induction, so as to control to output signal; after the person or object leaves the sensing range, it will judge that there is no induction, and stop signal output, by which intelligent control can be achieved.

Quick Spec

  • Power Supply: DC 5-24V
  • Load Current: 300mA
  • Operating Current: 15mA
  • Detection Distance: adjustable within 1-400cm
  • Detection Accuracy: ±4%
  • Wavelength: 940nm laser emitter
  • Output Mode: high/low level
  • Detection Angle: 35°(transmit), 25°(receive)
  • Short Circuit Protection: disable output when over 1A
  • Detection Mode: active mode
  • Operating Ambient Temperature: -20-70°C
  • Storage Temperature: -20°-85°C
  • Waterproof Performance: IP67
  • Material: filter: PC optical material, housing: PC-V0 fireproof material



Wiring Diagram



  • Yellow: Signal output
  • Brown: Power positive 5-24V
  • Blue: Power negative
  • Black: Floating

How to adjust detection distance

Keep the sensor powered on and in the normal operating status, and place a roughly 80x80cm of kraft paperboard (or other objects) in front of the sensor at 70cm. The distance adjustment steps are as shown in the diagram, enter the distance adjustment mode: hold on the adjustment button, when the red LED indicator flashes, enter the automatic distance adjustment mode; don't move the sensor and paperboard when the LED flashes, when the LED indicator stops flashing, the distance adjustment is done.


Sample Code

 * @File  Infrared_Approach_Sensor.ino
 * @brief  Detect the status of IO4 and print it in serial port
 * @copyright  Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
 * @licence  The MIT License (MIT)
 * @version  V1.0
 * @date  2020-08-20
int  OUT = 4;
int  i = 0;
void setup()
  pinMode(OUT, INPUT);
void loop()
   i = digitalRead (OUT);


Shipping List

  • 1 x DF Robot IR Proximity Sensor 1- 400cm

DF Robot IR Proximity Sensor 1- 400cm

  • Brand: DF Robot
  • Product Code: SEN0531
  • Weight: 0.016kg
  • Product Status : Active
  • Stock

    Warehouse Stock Status Location
    Centurion In Stock AA085
    Stellenbosch In Stock Z6016
    Bulk Location No Stock

    We ship free of charge between branches to complete your order.

  • R438.00 (Inc Tax: R503.70)

Related Products

E18-D80NK Adjustable IR  Proximity Sensor

E18-D80NK Adjustable IR Proximity Sensor

IR Adjustable Trigger Sensor - E18-D80NK The E18-D80NK is an Infrared distance switch, a high-sensitive photo reflector to detect distance from an object. The range is from 3cm to 80cm and can adju..

Centurion (In Stock)
Stellenbosch (No Stock)
Bulk Location (No Stock)
Part No: E18-D80NK
Product Status : Active

R115.00 (Inc Tax: R132.25)

DF Robot Metal Proximity Switch 5V

DF Robot Metal Proximity Switch 5V

DF Robot Metal Proximity Switch 5V The proximity switch usually possesses the characteristics of travel switch, micro switch and sensor. This is a small 5V metal proximity switch with 27 x 10 x 6mm..

Centurion (In Stock)
Stellenbosch (In Stock)
Part No: FIT0658
Product Status : Active

R169.00 (Inc Tax: R194.35)

Industrial Magnetic Switch - IP67

Industrial Magnetic Switch - IP67

Industrial Magnetic Switch - IP67 The magnetic switch mainly comprises two parts---the inducting end and trigger. The former has a reed switch enclosed inside and there is a cable connected to it, ..

Centurion (No Stock)
Stellenbosch (No Stock)
Part No: SEN0387
Product Status : Active

R78.00 (Inc Tax: R89.70)

Tags: digital, distance, sensor, ir, infrared, proximity, laser, reflection