A method to control a level sensor of a medium (L), the level sensor having an array of capacitive elements designed to be associated with a vessel , the array of capacitive elements comprising a plurality of electrodes (J 1 -J n ), wherein each capacitive element comprises at least one of a single electrode (J) and a group of electrodes connected in common to each other (J 4 , J 21 , J 38 ; J 20 , J 37 , J n ), particularly in parallel, the single electrode (J) or the group of the electrodes ( J 4 , J 21 , J 38 ; J 20 , J 37 , J n ) being connected to a respective input (IN) of a plurality of inputs (IN 1 -IN n ) of a control circuit , wherein the electrodes of the plurality of electrodes (J 1 -J n ) include detecting electrodes and at least one reference electrode (J 1 ), wherein a level of the medium (L) present in the vessel is deduced based on acquired electrical signals representative of electrical capacitance, wherein detection of a value of electrical capacitance at each input of the plurality of inputs (IN 1 -IN n ) is carried out in an indirect manner, based on the measurement of a voltage, characterised in that the control circuit is programmed to carry out a measurement of a differential type, wherein the control circuit calculates a difference between: a voltage value detected at an input (IN) of the plurality of inputs (IN 1 -IN n ) which is connected to a single detecting electrode or a group of detecting electrodes connected in common, and a voltage value detected at an input (IN 1 ) of the plurality of inputs (IN 1 -IN n ) which is connected to the at least one reference electrode (J 1 ), to thereby obtain a voltage differential value which is compared with at least one reference threshold, to deduce whether the medium (M) is facing or not facing said single detecting electrode or at least one of the detecting electrodes of said group of detecting electrodes. wherein each capacitive element comprises at least one of a single electrode (J) and a group of electrodes connected in common to each other (J 4 , J 21 , J 38 ; J 20 , J 37 , J n ), particularly in parallel, the single electrode (J) or the group of the electrodes ( J 4 , J 21 , J 38 ; J 20 , J 37 , J n ) being connected to a respective input (IN) of a plurality of inputs (IN 1 -IN n ) of a control circuit , wherein the electrodes of the plurality of electrodes (J 1 -J n ) include detecting electrodes and at least one reference electrode (J 1 ), wherein a level of the medium (L) present in the vessel is deduced based on acquired electrical signals representative of electrical capacitance, wherein detection of a value of electrical capacitance at each input of the plurality of inputs (IN 1 -IN n ) is carried out in an indirect manner, based on the measurement of a voltage, characterised in that the control circuit is programmed to carry out a measurement of a differential type, wherein the control circuit calculates a difference between: a voltage value detected at an input (IN) of the plurality of inputs (IN 1 -IN n ) which is connected to a single detecting electrode or a group of detecting electrodes connected in common, and a voltage value detected at an input (IN 1 ) of the plurality of inputs (IN 1 -IN n ) which is connected to the at least one reference electrode (J 1 ), a voltage value detected at an input (IN) of the plurality of inputs (IN 1 -IN n ) which is connected to a single detecting electrode or a group of detecting electrodes connected in common, and a voltage value detected at an input (IN 1 ) of the plurality of inputs (IN 1 -IN n ) which is connected to the at least one reference electrode (J 1 ), to thereby obtain a voltage differential value which is compared with at least one reference threshold, to deduce whether the medium (M) is facing or not facing said single detecting electrode or at least one of the detecting electrodes of said group of detecting electrodes. <EOS>