I am using this infra red photocell sensor …
Its a swing gate and was trying to minimised wires length and hence wanted to put the sensor at the near gate pillar…
The typical reed sensors which are normally open will work as well and necessitate a simple change of position for the sensor. Let s do the common method for a wider audience.
thanks