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
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
I made this. It works great.
Are you sure? yes | no