Hall effect
A Hall effect sensor uses a tiny semiconductor chip that produces a voltage whenever a magnetic field passes across it. Inside the chip, current flows through a small slab of doped silicon, and a magnetic field perpendicular to that current pushes the moving charge carriers to one side. The accumulation of charge creates a small voltage across the slab — the Hall voltage — which is amplified into a clean digital pulse.
For speed measurement, the sensor is mounted close to a rotating wheel that carries permanent magnets, or, in the toothed-wheel variant, the sensor itself carries a small bias magnet and the rotating wheel has steel teeth. Each time a magnet or a tooth passes the sensor, the field strength at the chip changes sharply, and the chip emits a pulse.
The controller counts pulses over a known time window or measures the time between successive pulses, and from that calculates the shaft speed. Hall sensors are robust, completely contactless, and work all the way down to zero speed — making them the default choice for crankshaft, camshaft, and wheel speed sensing in modern vehicles, as well as for general industrial rotation monitoring.