As the magnet moves through the coil, the magnetic field lines passing through the coil change, which induces an electric current in the coil. The direction of the induced current is given by Lenz’s law, which states that the induced current will flow in a direction that opposes the change in magnetic flux that produced it. In this case, as the magnet moves towards the coil, the induced current will flow in one direction, and as the magnet moves away from the coil, the induced current will flow in the opposite direction.
By connecting an ammeter or multimeter to the coil, we can measure the magnitude and direction of the induced current. This setup is commonly used in generators and other devices that convert mechanical energy into electrical energy.