A system and method for utilizing a humidity sensor with an internal
combustion engine of a vehicle is described. Specifically, information
from the humidity sensor is used to adjust a desired air-fuel ratio to
reduce engine misfire while improving vehicle fuel economy. Further, such
information is also used to adjust timing and/or lift of the valve in the
engine cylinder. Finally, diagnostic routines are also described.