Both are wired together directly to the gate opener for activation of the gate opener. The magnetic sensor works on electro magnetism. As a body of metal moves past the buried sensor at least 5 MPH the sensor's electromagnetic field gets disturbed and the gate is triggered to open. The sensor gets buried parallel to the driveway, eliminating the need to saw cut the driveway to insert a loop or run wire beneath.
The Photo eye is placed on the primary side of the driveway (the side with the control box) simply run wire down to the photo eye and mount it on a small post in the ground. Then arrange the reflector up to 18' away on the opposite side of the driveway and reflect the beam from the eye back to the eye.
QB ID: CS-200-S50/NIR