Procedure for measuring a level of a medium in a vessel, with a level transmitter that works according to the transit time principle and is arranged on the vessel, wherein with said procedure - transmission signals are sent into the vessel by means of a transmission and reception unit and their parts reflected back at reflectors in the vessel to the transmission and reception unit are received as reception signals after a transit time that depends on the distance covered in this way, - wherein using the reception signals echo functions (A(t)) are derived, -- which return the amplitudes of the reception signals as a function of a position (t) corresponding to the associated transit time, - wherein useful echoes of predefined useful echo types that are contained in the echo functions (A(t)) and can be identified using predefined echo detection procedures are determined, wherein each useful echo is a local maximum of the echo function (A(t)), which is due to a reflection at a reflector assigned to its useful echo type, particularly a medium surface, a vessel floor or a disturbance located in the vessel, - wherein the echo quality (Q E) is determined for each useful echo, wherein the echo quality (Q E) is higher the more peak-shaped the echo function (A(t)) is in the area of the useful echo, and the more isolated the useful echo occurs in the echo function (A(t)) in relation to the other local maxima, wherein the echo qualities (Q E) of the useful echoes is determined using a surface enclosed under the echo function (A(t)) in a window of a predefined position width (Δt) and amplitude height (ΔA) surrounding the maximum of the respective useful echo, wherein the center of the window coincides with the point of the echo function (A(t)) defined by the maximum amplitude (A M) and the associated echo position (t E) of the useful echo, and wherein the position width (Δt) of the window is specified depending on the position (t E) of the window center, and - the level is determined taking into account the echo qualities (Q E) of the useful echoes. - transmission signals are sent into the vessel by means of a transmission and reception unit and their parts reflected back at reflectors in the vessel to the transmission and reception unit are received as reception signals after a transit time that depends on the distance covered in this way, - wherein using the reception signals echo functions (A(t)) are derived, -- which return the amplitudes of the reception signals as a function of a position (t) corresponding to the associated transit time, - wherein useful echoes of predefined useful echo types that are contained in the echo functions (A(t)) and can be identified using predefined echo detection procedures are determined, wherein each useful echo is a local maximum of the echo function (A(t)), which is due to a reflection at a reflector assigned to its useful echo type, particularly a medium surface, a vessel floor or a disturbance located in the vessel, - wherein the echo quality (Q E) is determined for each useful echo, wherein the echo quality (Q E) is higher the more peak-shaped the echo function (A(t)) is in the area of the useful echo, and the more isolated the useful echo occurs in the echo function (A(t)) in relation to the other local maxima, wherein the echo qualities (Q E) of the useful echoes is determined using a surface enclosed under the echo function (A(t)) in a window of a predefined position width (Δt) and amplitude height (ΔA) surrounding the maximum of the respective useful echo, wherein the center of the window coincides with the point of the echo function (A(t)) defined by the maximum amplitude (A M) and the associated echo position (t E) of the useful echo, and wherein the position width (Δt) of the window is specified depending on the position (t E) of the window center, and - the level is determined taking into account the echo qualities (Q E) of the useful echoes.