The vacuum switch automatically stops the pump when no liquid remains to be pumped, thereby eliminating the risk of the pump running dry and unnecessary consumption of electrical power. The vacuum switch can be remotely controlled or controlled directly by means of a lever on the switch.