One of the daily chores of aquarium keepers is adding water to the tank to compensate for evaporation. For reef aquariums with intense lighting, the amount of evaporation can be substantial. In my 5 gallon nano-reef, I add 1-2 cups every day. This task is not only boring and repetitive, it is also stressful for the aquarium. The sudden change in salinity of adding 1-2 cups (or 2-4 cups, if I forgot a day) is bad for the tank inhabitants. The solution is to design an automatic top-off system. Here's how I did it:
I built a non-metallic water level sensor from two plastic fiberoptic cables and some spare plastic parts. The ends of the fiberoptics are directed towards each other at about a 60* total angle. The imaginary point of intersection is a few mm in front of the sensor head. The sensor works by sending light out one fiberoptic and sensing how much light returns via the other. When the water level is within 1cm of the sensor head, the amount of light returned is very high since the surface of the water is a good reflector. As soon as the water rises above the sensor head, the amount of returned light drops to near-zero.




Interestingly, the sensor has a sort of built-in hysteresis. The water forms a meniscus with the sensor head, and as the level drops, the meniscus keeps the sensor submerged as the level drops below the sensor head. Finally, the meniscus breaks, and the sensor "sees" the water surface. The pump is activated, and the level rises until it meets the sensor head. This provides a nice on/off cycle action.
