Detection device integrated into a hydraulic actuator, comprising: - a substantially rectilinear body defining a first portion of the side of a first end and a second portion of the side of a second end , - a contact interface which is movable in translation with respect to the body of the device and along the axis of the body of the device, the interface is positioned at the level of the first portion of the body of the device and is designed to interact, through an opening formed at the level of the first end of the body , with a surface of a detected element, - at least two conductors mounted at the level of the second portion of the body of the device, these conductors comprising, on the one hand, first respective ends oriented towards the second end (lb') of the body of the device at the level of at least one opening to form connection pins to an electric circuit and, on the other hand, respective second ends (4a", 4b") forming terminals in a housing of the first portion of the body of the device, - at least one contactor mounted so as to be movable relative to the body of the device, and displaced under the action, on the one hand, of a force from the contact interface and, on the other hand, of a force from at least one return means which opposes the force of the contact interface , the contactor being capable, at the level of an end of travel, of connecting the terminals (4a", 4b") of the conductors , - at least one first sealing system mounted at the level of an inner housing at the second portion of the body of the device, configured to prevent any exchange of fluid between, on the one hand, the medium of the element detected at the level of the first end of the body of the device and, on the other hand, a second medium at the level of the second end of the body of the device, this first sealing system being electrically insulating and traversed by the at least two conductors . - a substantially rectilinear body defining a first portion of the side of a first end and a second portion of the side of a second end , - a contact interface which is movable in translation with respect to the body of the device and along the axis of the body of the device, the interface is positioned at the level of the first portion of the body of the device and is designed to interact, through an opening formed at the level of the first end of the body , with a surface of a detected element, - at least two conductors mounted at the level of the second portion of the body of the device, these conductors comprising, on the one hand, first respective ends oriented towards the second end (lb') of the body of the device at the level of at least one opening to form connection pins to an electric circuit and, on the other hand, respective second ends (4a", 4b") forming terminals in a housing of the first portion of the body of the device, - at least one contactor mounted so as to be movable relative to the body of the device, and displaced under the action, on the one hand, of a force from the contact interface and, on the other hand, of a force from at least one return means which opposes the force of the contact interface , the contactor being capable, at the level of an end of travel, of connecting the terminals (4a", 4b") of the conductors , - at least one first sealing system mounted at the level of an inner housing at the second portion of the body of the device, configured to prevent any exchange of fluid between, on the one hand, the medium of the element detected at the level of the first end of the body of the device and, on the other hand, a second medium at the level of the second end of the body of the device, this first sealing system being electrically insulating and traversed by the at least two conductors . <EOS>