A level sensor for detecting the level of a medium contained in a vessel comprises:
- an array of capacitive elements designed to be associated with the vessel (1), comprising a plurality of electrodes (J1-Jn), spaced apart from each other along an axis of detection (X),
- an insulation layer (16) for electrically insulating the electrodes (Ji-L) with respect to the inside of the vessel (1),
- a controller (24) having a plurality of inputs.
Each capacitive element comprises at least one of a single electrode and a group of electrodes connected in common to each other, the single electrode or the group of electrodes being connected to a respective input of the plurality of inputs.
The controller (24) is prearranged for discriminating a value of electrical capacitance associated with each electrode (J1-Jn) to deduce the level of the medium present in the vessel.