# Connecting Keyence EZ-18T Proximity Sensor to UR5

**URL:** <https://forum.universal-robots.com/t/connecting-keyence-ez-18t-proximity-sensor-to-ur5/30118>\
**Category:** Technical Questions\
**Created:** [August 24, 2023, 12:45pm UTC](https://forum.universal-robots.com/t/connecting-keyence-ez-18t-proximity-sensor-to-ur5/30118 "2023-08-24T12:45:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Del777](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@Del777](https://forum.universal-robots.com/u/Del777)\
**Post date:** [August 24, 2023, 12:45pm UTC](https://forum.universal-robots.com/t/connecting-keyence-ez-18t-proximity-sensor-to-ur5/30118/1 "2023-08-24T12:45:05Z")

</div>

Hi All,

Is it possible to connect a Keyence EZ-18T NPN proximity sensor to the control panel? The 4 wires are:  
Red: +12~24 V  
Black: 0V  
White: NPN N.O  
Brown: NPN N.C

Can i disregard the brown (N.C) as I want to use it normally open?

Thanks,  
Del

---

<div class="post-metadata">

**Author:** ![m.hammerton](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@m.hammerton](https://forum.universal-robots.com/u/m.hammerton)\
**Post date:** [August 25, 2023, 6:47am UTC](https://forum.universal-robots.com/t/connecting-keyence-ez-18t-proximity-sensor-to-ur5/30118/2 "2023-08-25T06:47:14Z")

</div>

Del777,  
It’s not possible to directly connect an NPN Sensor to the control panel.as the Robot is PNP.

You can however use the sensor to drive / switch a relay and the use the 24v from the robot through the NO contact and back to your desired input.

Connect  
Red of the sensor to the 24V of the Robot  
Black of the sensor to the 0V of the Robot  
Connect 24V of the Robot to the A1 of the Relay  
Connect the White of the sensor to A2 of the Relay  
Connect 24V of the Robot to one side of a NO Contact of the Relay  
Connect your Robot Input to the other side on the NO Contact of the Relay

In future make sure you use PNP Sensors and you can wire them diretly into the Robot.

Hope this helps.
