A level switch detects the presence or absence of material at a particular point by processes such as flotation, optical detection, or conductivity. When it reaches the predetermined level, it initiates an action such as pump activation or valve opening/closure.