Lebesgue sampling method and the implementation of digital sensors for controlling the level variable in a continuous system