Overview of 24V Photoelectric Sensors in Industrial Control
In modern automation systems, 24V photoelectric sensors are widely used for non-contact object detection. These sensors emit a light beam and detect changes in reflection or interruption. When integrated with relay switches, they enable reliable control of actuators, motors, and alarms. The 24V DC power supply is standard in industrial environments, offering safety and compatibility with PLCs and other control modules. Proper wiring and configuration are essential to ensure stable operation and avoid false triggers.

Selecting the Right Relay for 24V Sensor Output
A relay must match the sensor's output specifications. Typically, a 24V photoelectric sensor provides a NPN (sinking) or PNP (sourcing) output. For NPN sensors, the load (relay coil) is connected between the positive supply and the sensor output. For PNP sensors, the load connects between the output and ground. Choose a relay with a coil voltage of 24V DC and a contact rating suitable for the controlled device. Use a flyback diode across the relay coil to suppress voltage spikes, especially when using inductive loads.
Wiring Diagram and Connection Steps
1. Connect the 24V DC power supply positive terminal to the sensor's brown wire and the relay coil's positive terminal.
2. Connect the power supply negative terminal to the sensor's blue wire and the relay coil's negative terminal.
3. For a PNP sensor, connect the black (output) wire to the relay coil's positive side. For an NPN sensor, connect the black wire to the relay coil's negative side.
4. Install a freewheeling diode in parallel with the relay coil, cathode to positive, to protect the sensor from back EMF.
5. Verify the relay's normally open (NO) or normally closed (NC) contacts based on the application. For example, use NO contacts to switch on a motor when the sensor detects an object.
Testing and Troubleshooting Common Issues
After wiring, test the system by powering up and moving an object in front of the sensor. The relay should click and change state. Common issues include:
- No relay activation: check sensor alignment, power polarity, and output type (NPN vs. PNP).
- Relay chattering: likely due to insufficient load current or poor wiring. Ensure the sensor's output current exceeds the relay's pick-up current.
- False triggering: adjust the sensor's sensitivity or install a shield to avoid ambient light interference. Use a multimeter to verify voltage levels at the sensor output and relay coil.
Practical Application Example: Conveyor Belt Control
In a conveyor system, a 24V photoelectric sensor detects packages. The sensor's PNP output energizes a relay, which in turn powers a motor starter for the belt. When a package blocks the sensor beam, the relay de-energizes, stopping the belt. This simple on/off control improves efficiency and prevents jams. For safety, add a time-delay relay to avoid rapid cycling. Always follow local electrical codes and use appropriate fuses for overload protection.