When the main body hung from the top of the tank is tilted by the repose angle of the measured substance, the tilt of the main body is detected and the contact is switched. When the measured substance passes over, the output contact is restored to the initial state.