Here is a design concept for a cheap single point optical liquid sensor that can detect the presence or absence of certain colored liquids inside a transparent tube. It can be tailored to output a ...