A method and a device for determining a humidity content of an insulation of a transformer, the insulation having a liquid. The second liquid is immiscible with the first liquid. The polarization controller is adapted to modify the polarization state of light passing therethrough in dependence on the characteristic polarization transfer function of the feedforward controller.