Here's the tutorial where I learned from: http://www.simpleiothings.com/10-diy-door-sensor/
The problem is, if for whatever reason the Wi-Fi drops, it does not automatically reconnect unless I reset the power to the board.
Any way to solve this? I use LuaLoader to upload the lua files to the board.
Thanks in advance for any help.