A system comprising an earpiece for an ear canal of a user, the earpiece is configured for sealing the ear-canal of the user wearing the earpiece, the earpiece having a first end, the first end facing a tympanic membrane of the ear canal of the user when the earpiece is worn by the user, the earpiece having a second end, the second end facing toward the surroundings of the user when the earpiece is worn by the user, wherein the earpiece comprises: - a vent channel coupled to a first vent opening positioned at the first end and a second vent opening positioned at the second end, wherein the vent channel comprises a vent port; - a closing element, the closing element comprising a first magnetic member, wherein the closing element is configured for being in a first state or in a second state, wherein in the first state the closing element causes the vent port to be open, and in the second state the closing element causes the vent port to be closed; - an inductive member comprising a conductive material, the inductive member being configured in a fixed relationship with the closing element and being configured for inductive coupling with a second magnetic member; - the second magnetic member is configured for displacing the closing element by magnetic interaction with the first magnetic member; wherein the system comprises: - a processor being communicatively coupled to the second magnetic member and configured for obtaining an electrical measurement value of the second magnetic member; and - wherein the processor is configured for determining the state of the closing element based on the electrical measurement value of the second magnetic member. wherein the earpiece comprises: - a vent channel coupled to a first vent opening positioned at the first end and a second vent opening positioned at the second end, wherein the vent channel comprises a vent port; - a closing element, the closing element comprising a first magnetic member, wherein the closing element is configured for being in a first state or in a second state, wherein in the first state the closing element causes the vent port to be open, and in the second state the closing element causes the vent port to be closed; - an inductive member comprising a conductive material, the inductive member being configured in a fixed relationship with the closing element and being configured for inductive coupling with a second magnetic member; - the second magnetic member is configured for displacing the closing element by magnetic interaction with the first magnetic member; - a vent channel coupled to a first vent opening positioned at the first end and a second vent opening positioned at the second end, wherein the vent channel comprises a vent port; - a closing element, the closing element comprising a first magnetic member, wherein the closing element is configured for being in a first state or in a second state, wherein in the first state the closing element causes the vent port to be open, and in the second state the closing element causes the vent port to be closed; - an inductive member comprising a conductive material, the inductive member being configured in a fixed relationship with the closing element and being configured for inductive coupling with a second magnetic member; - the second magnetic member is configured for displacing the closing element by magnetic interaction with the first magnetic member; wherein the system comprises: - a processor being communicatively coupled to the second magnetic member and configured for obtaining an electrical measurement value of the second magnetic member; and - wherein the processor is configured for determining the state of the closing element based on the electrical measurement value of the second magnetic member. - a processor being communicatively coupled to the second magnetic member and configured for obtaining an electrical measurement value of the second magnetic member; and - wherein the processor is configured for determining the state of the closing element based on the electrical measurement value of the second magnetic member.