A method for regulating, with a computer, a resistive element arranged to deice and/or demist a support, wherein the resistive element comprises a stack of layers formed by a first layer and a second layer separated by an insulating layer, the first layer comprising a two-dimensional material with resistance that is variable under an effect of an electrical field and is configured to dissipate adjusted thermal power while the second layer comprises a resistive material and is configured, as soon as the resistive material is subjected to an electrical potential, to impose an electrical field on the first layer,
- the method comprising:
- monitoring, with a monitoring loop, temperature T and moisture level H at the support,
- keeping the resistive element inactive, through a deicing and/or demisting sequence as long as the temperature T and the moisture level II monitored during the monitoring loop are indicative of an absence of frost or mist on the support,
- demanding, when the temperature T and the moisture level H monitored during the monitoring loop are not indicative of an absence of frost or mist on the support, a circulation of a current in the resistive element so that the latter dissipates the thermal power adjusted according to the temperature T and the moisture level H, and
- allowing deicing or demisting of the support over a predetermined period,
- wherein the deicing sequence comprises a step, executed before determining the thermal power, of determining the resistance of the first layer as a function of a potential applied to the second layer.