[0021]Another feature of the present invention is to use the output terminal of the evaluation unit for outputting the switching signal and also as an input for input signals for setting the switching signals in correspondence with the groups of signal values or to initiate the learning mode. It is therefore possible to place the magnetic sensor in its learning mode, or for it to learn the switching signals for the various positions of the activation magnet, via the output, which serves as a connection for the magnetic sensor to the outside. This way, the need for additional connectors, connecting leads or other input devices is eliminated.