make it a bit smarter (only turn on alarm if opened and not closed