An engine control system and method for improving stability of engine running speed when torque subtractions from gross torque change while the engine is running at a constant speed, such as at low idle speed. An expansion code is generated from both a user input code and a function identification code corresponding to a specific function. In accordance with the invention the internal gain of the sensor is configurable to enable the fluorescence and absorption measurements to be executed sequentially.