Door-locking device for a household appliance, such as a washing machine, a dishwasher and the like, of the type having a door, with a lug, wherein said door-locking device comprises a slider arranged so as to assume a disengagement and an engagement position with the lug of the household appliance door, a detection and safety module, having a main conductive plate, a locking pin, capable of assuming capable of assuming a retracted position, and an extracted position, in which is capable of engaging with said slider when it is in said engagement position, a main switch, arranged on said main conductive plate, so as to be opened when said locking pin is in said retracted position, and to be closed when said locking pin is in said extracted position, wherein when said main switch is closed indicates that the slider is locked by said locking pin in said engagement position, a safety pin, that interferes with said slider, so that when said slider moves from said disengagement position to said engagement position, said safety pin closed said sensor switch, wherein said safety pin comprises a lower relief, arranged so that, when said slider interferes with said lower relief, rotates said safety pin, characterized in that the detection and safety module also has a sensor switch, arranged in series with said main switch, for indicating, when it is closed, that said slider is in said engagement position, in that said main conductive plate is fixed to said locking pin, so that when said locking pin is in said retracted position, said main conductive plate is in a first position, instead, when said locking pin is in said extracted position, said main conductive plate is in a second position, and in that the safety pin further comprises a flap arranged so that, when said safety pin rotates, interferes with said main conductive plate, wherein the rotation of said safety pin changes according to the position of said main conductive plate. a slider arranged so as to assume a disengagement and an engagement position with the lug of the household appliance door, a detection and safety module, having a main conductive plate, a locking pin, capable of assuming capable of assuming a retracted position, and an extracted position, in which is capable of engaging with said slider when it is in said engagement position, a main switch, arranged on said main conductive plate, so as to be opened when said locking pin is in said retracted position, and to be closed when said locking pin is in said extracted position, wherein when said main switch is closed indicates that the slider is locked by said locking pin in said engagement position, a safety pin, that interferes with said slider, so that when said slider moves from said disengagement position to said engagement position, said safety pin closed said sensor switch, wherein said safety pin comprises a lower relief, arranged so that, when said slider interferes with said lower relief, rotates said safety pin, a main conductive plate, a locking pin, capable of assuming capable of assuming a retracted position, and an extracted position, in which is capable of engaging with said slider when it is in said engagement position, a main switch, arranged on said main conductive plate, so as to be opened when said locking pin is in said retracted position, and to be closed when said locking pin is in said extracted position, wherein when said main switch is closed indicates that the slider is locked by said locking pin in said engagement position, a safety pin, that interferes with said slider, so that when said slider moves from said disengagement position to said engagement position, said safety pin closed said sensor switch, wherein said safety pin comprises a lower relief, arranged so that, when said slider interferes with said lower relief, rotates said safety pin, characterized in that the detection and safety module also has a sensor switch, arranged in series with said main switch, for indicating, when it is closed, that said slider is in said engagement position, in that said main conductive plate is fixed to said locking pin, so that when said locking pin is in said retracted position, said main conductive plate is in a first position, instead, when said locking pin is in said extracted position, said main conductive plate is in a second position, and in that the safety pin further comprises a flap arranged so that, when said safety pin rotates, interferes with said main conductive plate, wherein the rotation of said safety pin changes according to the position of said main conductive plate.