How does a Hall effect sensor detect magnetic fields?
A Hall effect sensor detects magnetic fields by measuring the voltage that develops across an electrical conductor through which an electric current is flowing, in the presence of a perpendicular magnetic field. This voltage is known as the Hall voltage and is proportional to the strength of the magnetic field.