to those exemplary embodiments on the contrary the invention is intended to cover not only the exemplary embodiments but also various alternatives modifications equivalents and other embodiments which may be included within the spirit and scope of the invention as defined by the appended claims in the following detailed description only certain exemplary embodiments of the present invention have been shown and described simply by way of illustration as those skilled in the art would realize the described embodiments may be modified in various different ways all without departing from the spirit or scope of the present invention accordingly the drawings and description are to be regarded as illustrative in nature and not restrictive like reference numerals designate like elements throughout the specification fig1 shows a block diagram of an apparatus for controlling a diesel engine according to an exemplary embodiment of the present invention as shown in fig1 an apparatus for controlling a diesel engine according to an exemplary embodiment of the present invention includes an engine speed sensor 101 a lambda sensor 102 an air flow sensor 103 an engine control unit ecu 104 and an injector 105 the engine speed sensor 101 detects a rotation speed of the engine and it may be realized as a crank position sensor cps that detects an angular position of a crankshaft.