Optical sensors are a broad class of device for detecting light intensity. This can be just a simple component for notifying when ambient light levels rise above or fall below a prescribed level ...
These connect to an LX3302A inductive sensor IC, which reads the position of the copper slug inside the float. That simplifies the process greatly; [Mark] goes into great detail about the design ...