The door sensor is supplied with screws and double-sided adhesive. It is suitable for both swinging and sliding doors.
For more simplicity, pair up to two door sensors on the same camera in order to have one on your stable (screw attachment) and to take one with you when you travel (adhesive attachment).
Installation tips: Close the door, and place the two parts of the sensor face to face, with one on the door. As the two parties approach and move away, a brief red light appears. If this is not the case, it means that the two parts are too far apart (distance <5mm).