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:531 Comment

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

paulfecht wrote 05/08/2022 at 22:32 point

I made this.  It works great.

  Are you sure? yes | no