Here are some ideas. Picking a Contact Sensor for Your Home ...
Now, thanks to the work of [Jonathan Armstrong] we have such a firmware for the 433 MHz magnetic door and window sensors that you ... and turned it into a smart home powerhouse.