Best way to tell if a lid is open.

Mercury switches are probably illegal now.