This door sensor powers on if the door opens and maintains powered until data (over wifi) is sent, shuts itself down after detecting the is door closed - not fully working yet / WIP

WIP: Transistor does not keep circuit powered, detection of door close not working yet. See http://forum.arduino.cc/index.php?topic=325390.msg2247253#msg2247253 for resolution of issues.