The SONOFF SNZB-04 door and window sensor. It consits of two parts: a sensor and a magnet.

SONOFF SNZB-04