I have been using a Samsung brand contact sensor for the past few years.
The contact sensor is placed above the door, one on the molding of the lintel and the other on the edge of the door.
The contact is, of course, not perfect. First, it doesn’t touch; it’s about roughly a centimeter from its counterpart. And as far as alignment of depth (the placement measured from the base where it is “glued” to the height of the device); there is some alignment gap due to the molding.
So recently, my sensor keeps alerting my app that the door is not closed.
I’ve had this issue before. Eventually, it only happens for a short window of time. But I’m wondering how I should fix this problem.