A top-loading washing and/or drying machine comprising: a cabinet; a drum rotatably mounted within said cabinet about a horizontal axis and having an aperture on its cylindrical side; at least one drum door (14a, 14b) supported by the drum for opening and closing said aperture; a safety mechanism supported by the drum and/or by said at least one door (14a, 14b) and configured to selectively lock and unlock said drum door (14a, 14b); a control unit; a sensing device configured to sense a relative position of said at least one drum door (14a, 14b) with respect to at least the safety mechanism; wherein the sensing device is operatively connected to the control unit to provide a signal indicating a correct closed configuration of said drum door (14a, 14b), characterised in that the sensing device comprises a first element mounted on the drum or on said drum door (14a, 14b) or on another drum door (14a, 14b), a second element part of the safety mechanism, wherein the first element and the second element create a sensing circuit, wherein when said drum door (14a, 14b) is in the correct closed configuration, then the sensing circuit is closed and the control unit receives said signal indicating the correct closed configuration of said drum door (14a, 14b), wherein the sensing device further comprises a third element connected to the cabinet, wherein the third element forms part of the sensing circuit together with the first element and the second element, wherein when the drum is in a predefined position, then the sensing circuit is closed and the control unit receives said signal indicating the correct closed configuration of said drum door (14a, 14b), wherein the third element is mounted on a tub surrounding the drum, and wherein the sensing circuit comprises a signal source (32; 38; 100), a transmitting means (33; 42, 43) and a receiver sensor (36; 39; 102), the first element and/or the second element and/or the third element comprising the signal source (32; 38; 100), the first element and/or the second element comprising the transmitting means (33; 42, 43) and the third element comprising the receiver sensor (36; 39; 102). a cabinet; a drum rotatably mounted within said cabinet about a horizontal axis and having an aperture on its cylindrical side; at least one drum door (14a, 14b) supported by the drum for opening and closing said aperture; a safety mechanism supported by the drum and/or by said at least one door (14a, 14b) and configured to selectively lock and unlock said drum door (14a, 14b); a control unit; a sensing device configured to sense a relative position of said at least one drum door (14a, 14b) with respect to at least the safety mechanism; wherein the sensing device is operatively connected to the control unit to provide a signal indicating a correct closed configuration of said drum door (14a, 14b), characterised in that the sensing device comprises a first element mounted on the drum or on said drum door (14a, 14b) or on another drum door (14a, 14b), a second element part of the safety mechanism, wherein the first element and the second element create a sensing circuit, wherein when said drum door (14a, 14b) is in the correct closed configuration, then the sensing circuit is closed and the control unit receives said signal indicating the correct closed configuration of said drum door (14a, 14b), wherein the sensing device further comprises a third element connected to the cabinet, wherein the third element forms part of the sensing circuit together with the first element and the second element, wherein when the drum is in a predefined position, then the sensing circuit is closed and the control unit receives said signal indicating the correct closed configuration of said drum door (14a, 14b), wherein the third element is mounted on a tub surrounding the drum, and wherein the sensing circuit comprises a signal source (32; 38; 100), a transmitting means (33; 42, 43) and a receiver sensor (36; 39; 102), the first element and/or the second element and/or the third element comprising the signal source (32; 38; 100), the first element and/or the second element comprising the transmitting means (33; 42, 43) and the third element comprising the receiver sensor (36; 39; 102).