Carbon buildup on the flame sensor interferes with its interpretation of the flame, causing it to mistake high wavelength light for low wavelength light. This can cause the water heater to stay in vacation mode or malfunction altogether.