A method for automatically detecting a door or window fault of a door or window, wherein the method comprises the following steps: mounting at least two displacement sensors at at least two monitoring positions, respectively, being: - at a door or window frame and leaf of the door or window, - at door or window hardware (1-7) of the door or window, or - at the door or window frame and leaf and at the door or window hardware (1-7), to monitor a relative position change of the door or window frame and leaf, a relative displacement of the door or window hardware (1-7), or the relative position change of the door or window frame and leaf and the relative displacement of the door or window hardware (1-7), respectively, at said at least two monitoring positions; and connecting the at least two displacement sensors to a controller which judges whether the relative position change of the door or window frame and leaf, the relative displacement of the door or window hardware (1-7), or the relative position change of the door or window frame and leaf and the relative displacement of the door or window hardware (1-7) at said at least two monitoring positions exceeds a displacement threshold, and thereby perform judgment for said door or window fault; wherein said mounting the at least two displacement sensors at the at least two monitoring positions, respectively, comprises mounting: - one of the at least two displacement sensors on a mounting plate and a hinge sheet of a hinge (5, 6; 10, 11) for mounting on the door or window leaf and frame, and - another one of the at least two displacement sensors at a lock seat and a lock point on the door or window on a side of a handle of the door or window. mounting at least two displacement sensors at at least two monitoring positions, respectively, being: - at a door or window frame and leaf of the door or window, - at door or window hardware (1-7) of the door or window, or - at the door or window frame and leaf and at the door or window hardware (1-7), - at a door or window frame and leaf of the door or window, - at door or window hardware (1-7) of the door or window, or - at the door or window frame and leaf and at the door or window hardware (1-7), to monitor a relative position change of the door or window frame and leaf, a relative displacement of the door or window hardware (1-7), or the relative position change of the door or window frame and leaf and the relative displacement of the door or window hardware (1-7), respectively, at said at least two monitoring positions; and connecting the at least two displacement sensors to a controller which judges whether the relative position change of the door or window frame and leaf, the relative displacement of the door or window hardware (1-7), or the relative position change of the door or window frame and leaf and the relative displacement of the door or window hardware (1-7) at said at least two monitoring positions exceeds a displacement threshold, and thereby perform judgment for said door or window fault; wherein said mounting the at least two displacement sensors at the at least two monitoring positions, respectively, comprises mounting: - one of the at least two displacement sensors on a mounting plate and a hinge sheet of a hinge (5, 6; 10, 11) for mounting on the door or window leaf and frame, and - another one of the at least two displacement sensors at a lock seat and a lock point on the door or window on a side of a handle of the door or window. - one of the at least two displacement sensors on a mounting plate and a hinge sheet of a hinge (5, 6; 10, 11) for mounting on the door or window leaf and frame, and - another one of the at least two displacement sensors at a lock seat and a lock point on the door or window on a side of a handle of the door or window. <EOS>