Features:

--
DC 12V/24V 4 meters / 15fts detection sensor distance
-- Widely used for sliding gate and garage door safety protection
-- Reflective infrared sensor
-- Relay output for gate opener safety detection input
-- Through-beam, detect distance: 4m (15fts) / Retro-reflective;
-- Light resource: Infrared LED
-- Strong anti-shock and anti-vibration.
-- Non-contact object detect: Avoid the photoelectric sensor to contact the object directly, protect the inducing component from damage and extend the operation life of the sensor.
-- Detect any objects with different materials: Detect objects by the light quantities reflected and received, detect objects such as glass, metal, plastic, wood, fluid, etc...
-- Fast response: Max. 3ms
-- Identify object colors: According to the colors' reflective and absorptive, the sensors detect the light that the object reflected and identify the colors.
-- High precision: Precise electron circuit, can detect tiny objects with accurate position.

Wiring diagram is as follow:
1) Brown (12V DC)
2) Blue (24V AC)
3) White (NC/Normally Closed)
4) Black (Ground/GND/Negative)
5) Gray (NO/Normally Open)

Note: Brown and Blue wires only one can be connected at the same time, White and Gray only one can be connected at the same time, check if your system is NO or NC if you don't know switch the cables if they don't work when you first connect it