Electromagnetic induction is the process of using magnetic fields to produce voltage and current in a conductor. Michael Faraday discovered that a changing magnetic flux induces a voltage in any nearby conductor. This effect is known as electromagnetic induction. Lenz's law describes how the direction of induced current is always such that it creates a magnetic field opposing the original change in magnetic flux that caused it. Motional emf is a type of electromagnetic induction that occurs when a conductor moves through a magnetic field, such as in electric generators, transformers, electric motors, and railguns.