1. Device for monitoring a building's opening, which is sealed with a non-completely transparent closure element, comprising: a detection unit directed to a pattern and a comparison unit for comparing the actual pattern detected by the detection unit with a reference pattern and for triggering an alarm if the deviation between the actual pattern and the reference pattern exceeds a predetermined threshold, characterized in that said pattern is essentially arranged on/in said closure element or projected onto/into it.