While their individual configurations might be different, the function of any engine sensor is to provide input data which the powertrain control module (PCM) processes to control output functions like the air/fuel mixture ratio, fuel injection mode, spark timing advance, camshaft timing, throttle opening and idle speed.
more