Stable reading of rapid input changes, such as surface waves in water tanks. ON/OFF control of water-supply and drainage pumps is performed by measuring the water level in the tank using an ultrasonic displacement sensor. Fluctuations in the present value caused by surface waves can be smoothed by using the input digital filter.