DoorContacts Detect open/closed doors and windows using an reed contact and a NodeMCU, publishing state on MQTT settings.h You have to copy the settings.h.example to settings.h and replace the strings with your credentials dependencies PubSubClient Arduino/ESP8266 Bounce2