Electromagnetic induction is the process of using magnetic fields to produce voltage and current in a conductor. Michael Faraday discovered that a voltage is induced in a conductor when it moves through a magnetic field. This is known as electromagnetic induction. Faraday's law states that the induced voltage is proportional to the rate of change of magnetic flux through a region. Lenz's law determines the direction of induced current based on whether it opposes the change producing it, in accordance with the law of conservation of energy. Many applications are based on electromagnetic induction, including generators, transformers, electric motors, and devices like rail guns.