In this article, a reliable and successful electronic design of a control of the temperature to automatically lock the wavelength of a Distributed FeedBack (DFB) diode laser is proposed and demonstrated to enhance the efficiency of an Erbium-doped Fiber Amplifier (EDFA). A thermistor from a commercial cooler was used to monitor the temperature on the DFB diode laser and the voltage measurement across the thermistor is the parameter to feedback the proposed design. The DFB diode laser was modulated by a pulse generator and it is used as input signal of the EDFA. The stabilization time for the wavelength locking at 1549.1 nm was 100 s. The proposed wavelength locking scheme is relatively simple and economical, in comparison with other state-of-the-art schemes and provides a new way to enhance the efficiency of the EDFA, in the way that the amplification of short pulses was improved and the Amplified Spontaneous Emission was minimized.