Sometimes we need a non-contact liquid level sensor. There are several ways to build that, but the easiest is to try an optical liquid level sensor. You may already have an idea in mind since you are ...
Figure 1a shows a slotted optical switch. An LED is mounted in a plastic housing, facing a phototransistor, but separated by a gap. If something moves into the gap, it blocks the light path between ...