Methods and systems are provided for a ducted fuel injector. In one example, a method may include adjusting a temperature of combustion chamber gases in a combustion chamber and/or adjusting a fuel rail pressure in response to an amount of light sensed by a photodiode of the duct.