Now it FOR SURE works. I tested.

I finally got the gate working.