A switching device comprising: a header, a first magnet and a second magnet, a first inductor and a second inductor, a first magnetic sensing element aligned with the first magnet and the first inductor and a second magnetic sensing element aligned with the second magnet and the second inductor, a printed circuit board comprising an upper face on which are mounted upfront the first magnetic sensing element and the second magnetic sensing element and a lower face on which are mounted upfront the first inductor and the second inductor, wherein when the switching device is operated, the header is pressed towards the printed circuit board, the first magnet and the second magnet get closer respectively to the first magnetic sensing element and the second magnetic sensing element, which increases the magnetic flux through the magnetic sensing elements and changes the status of the switching device if a threshold is reached, a first microcontroller unit and a second microcontroller unit, wherein the first microcontroller unit and the second microcontroller unit are configured to send a stimulus signal (S1; S2) respectively to the second inductor and to the first inductor, wherein the first microcontroller unit is configured to read a response produced by the first magnetic sensing element, the response containing a set of values of a magnetic field produced by the first inductor having received the stimulus signal sent by the second microcontroller unit, wherein the second microcontroller unit is configured to read a response produced by the second magnetic sensing element, the response containing a set of values of a magnetic field produced by the second inductor having received the stimulus signal sent by the first microcontroller unit, wherein the first microcontroller unit and the second microcontroller unit are configured to determine a state of the switching device based on the read responses. a header, a first magnet and a second magnet, a first inductor and a second inductor, a first magnetic sensing element aligned with the first magnet and the first inductor and a second magnetic sensing element aligned with the second magnet and the second inductor, a printed circuit board comprising an upper face on which are mounted upfront the first magnetic sensing element and the second magnetic sensing element and a lower face on which are mounted upfront the first inductor and the second inductor, wherein when the switching device is operated, the header is pressed towards the printed circuit board, the first magnet and the second magnet get closer respectively to the first magnetic sensing element and the second magnetic sensing element, which increases the magnetic flux through the magnetic sensing elements and changes the status of the switching device if a threshold is reached, a first microcontroller unit and a second microcontroller unit, wherein the first microcontroller unit and the second microcontroller unit are configured to send a stimulus signal (S1; S2) respectively to the second inductor and to the first inductor, wherein the first microcontroller unit is configured to read a response produced by the first magnetic sensing element, the response containing a set of values of a magnetic field produced by the first inductor having received the stimulus signal sent by the second microcontroller unit, wherein the second microcontroller unit is configured to read a response produced by the second magnetic sensing element, the response containing a set of values of a magnetic field produced by the second inductor having received the stimulus signal sent by the first microcontroller unit, wherein the first microcontroller unit and the second microcontroller unit are configured to determine a state of the switching device based on the read responses.