An encoder for stably detecting the amount of movement of an object. The encoder includes an LED for emitting light toward a rotor plate including slits. An optical sensor generates an ON signal when the amount of emitted light passing through the slits exceeds a threshold value. A current increasing circuit increases the amount of current flowing through the LED when the optical sensor generates an ON signal.