Retrofit Standard Deadbolt as Contact Sensor?

See this thread from @Timffba: