An apparatus for detecting the formation of ice on a surface with increased accuracy, and for deicing the said surface comprising: - at least two electrodes configured so that their capacitance changes according to the presence and proximity of ice and/or at least one inductor coil configured so that its inductance changes according to the presence and the proximity of the ice, - at least one optical couple comprising at least one emitter and at least one receiver, and the output of the at least one receiver is configured to change according to the presence and the proximity of ice, - at least one of: ∘ at least one capacitance measuring means configured to measure the capacitance of the electrodes when the at least two electrodes are utilized, ∘ at least one inductance measuring means configured to measure the inductance of the inductor coil when the at least one inductor coil is utilized, - at least one control unit configured to acquire and/or measure the capacitance of the electrodes and/or the inductance of the inductor coil and calculate a reference regarding the information of ice using said capacitance and/or inductance, and receive the output of the optical couple and calculate a reference regarding the formation of ice using said output, and characterized in that, - at least one two-way switch is configured to connect the inductor coil or at least one of the two electrodes to either a power source or the inductance measuring means or the capacitance measuring means, and at least one on/off switch electrically connects or disconnects the electrodes to/from each other, when the at least two electrodes are utilized, thereby enabling switching the electrodes from measuring mode to heating mode or vice-versa and wherein the power source is a high-frequency power source which enables inductive heating, when the at least one inductor coil is utilized. - at least two electrodes configured so that their capacitance changes according to the presence and proximity of ice and/or at least one inductor coil configured so that its inductance changes according to the presence and the proximity of the ice, - at least one optical couple comprising at least one emitter and at least one receiver, and the output of the at least one receiver is configured to change according to the presence and the proximity of ice, - at least one of: ∘ at least one capacitance measuring means configured to measure the capacitance of the electrodes when the at least two electrodes are utilized, ∘ at least one inductance measuring means configured to measure the inductance of the inductor coil when the at least one inductor coil is utilized, ∘ at least one capacitance measuring means configured to measure the capacitance of the electrodes when the at least two electrodes are utilized, ∘ at least one inductance measuring means configured to measure the inductance of the inductor coil when the at least one inductor coil is utilized, - at least one control unit configured to acquire and/or measure the capacitance of the electrodes and/or the inductance of the inductor coil and calculate a reference regarding the information of ice using said capacitance and/or inductance, and receive the output of the optical couple and calculate a reference regarding the formation of ice using said output, and characterized in that, - at least one two-way switch is configured to connect the inductor coil or at least one of the two electrodes to either a power source or the inductance measuring means or the capacitance measuring means, and at least one on/off switch electrically connects or disconnects the electrodes to/from each other, when the at least two electrodes are utilized, thereby enabling switching the electrodes from measuring mode to heating mode or vice-versa and wherein the power source is a high-frequency power source which enables inductive heating, when the at least one inductor coil is utilized.