Best way to tell if a lid is open.

http://arduino.cc/playground/Learning/LEDSensor
http://www.thebox.myzen.co.uk/Workshop/LED_Sensing.html

Would be the cheapest route.