Electrical currents are affected by magnetic fields. When a magnetic field is applied perpendicular to the flow of current, the field causes resistance in the current. This is a manifestation of the Lorentz force, which pushes the negatively charged electrons in the current in a direction dictated by the left hand rule
This movement of electrons results in a weak but measurable potential difference, or voltage, perpendicular both to the current flow and the applied magnetic field. This is known as the Hall effect, named after American physicist Edwin Hall, who discovered the phenomenon in 1879.