A method and apparatus for controlling a fuel-fired appliance is provided. The appliance enters a wait state in which burner operation ceases if a sensor indicates the presence of flammable vapors that are above an acceptable and/or safe vapor level. The appliance returns to a run state if the vapor level returns to an acceptable and/or safe vapor level within a period of time, but enters a lockout state if the vapor level does not return to an acceptable and/or safe vapor level within the period of time.