reed switch sensor working backwards with nodemcu lua ifttt
Posted: Sat May 06, 2017 8:15 pm
greetings,
i found a tutorial online on how to make a door sensor that sends a sms message to my cell through the ifttt service. it's supposed to text me when the door gets opened but for some reason it's working backwards and is only texting me when the door gets closed. ideally, i'd like to get a message when the door changes to any state, closed to open, open to closed.
things involved:
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4 (tried both integer and floating firmwares)
-MC-38 door sensor that has continuity when the magnet is near the reed
-lua loader v0.91
IFTTT push service
the instructions state to connect the reed sensor to d2 and GND.
i have attached a zip file containing the lua files uploaded to the nodemcu.
i found a tutorial online on how to make a door sensor that sends a sms message to my cell through the ifttt service. it's supposed to text me when the door gets opened but for some reason it's working backwards and is only texting me when the door gets closed. ideally, i'd like to get a message when the door changes to any state, closed to open, open to closed.
things involved:
NodeMCU 0.9.6 build 20150704 powered by Lua 5.1.4 (tried both integer and floating firmwares)
-MC-38 door sensor that has continuity when the magnet is near the reed
-lua loader v0.91
IFTTT push service
the instructions state to connect the reed sensor to d2 and GND.
i have attached a zip file containing the lua files uploaded to the nodemcu.