I used an ESP8266 to add WiFi functionality to my gate so that i can open and close the gate over MQTT. This in conjunction with my freshtomato flashed routers, I am able to automatically open and close the gate when my phone connects to the router located at the gate. I am using node-red for the backend presence detection and gate logic.