How to connect an external receiver to fully open and close the gate via remote button (trigger gate).

How to connect an external receiver to fully open and close the gate via remote button (trigger gate).

Kindly follow the wiring diagram below to fully open and close the gate via remote button using an external receiver (TRG).