These QWORK MC-31 sensors are small plastic contact switches with a magnet that sits on the moving part of a door or window. When the door or window is shut, the magnet keeps the switch closed. When it opens and the magnet pulls away, the circuit breaks and your alarm or automation system knows something has moved. They come in a white plastic body with two sizes, 64 by 12 by 12mm and 64 by 20 by 12mm, so you can pick the one that fits your frame.
Pick these if you want simple, reliable entry detection for doors, windows, cabinets or gates and you have a wired system to plug them into. Five sensors and 20 screws means you have what you need for a typical home right out of the box. They are a good fit for a DIY installer who is comfortable with basic wiring and screws.