function y = pelampung(x)
h = 1.1/(pi*(0.5^2)); % level maksimum level air [m]
if x < h-0.2
    y = 1;
elseif x > h-0.05
    y = 0;
else
    y = 1 - (1-0.15)*(x-h+0.2);
end