Close

It works!

A project log for Garage Door Sensor

Using the ESP8266 to broadcast open/close MQTT events over WiFi

Andy CastilleAndy Castille 06/05/2017 at 14:530 Comments

I had to modify the code to check the state twice and make sure the values match before sending an event because sometimes there are fluctuations in the sensor that would report it as open for a very small amount of time.

Because making that change involved taking the unit off the ceiling for USB programming, I also added Arduino OTA support so that future updates could be flashed over WiFi.

Discussions