Record video when contact sensor opens