>A colored floating ball in a vertical tube parallel to the main tank will give >you depth indication. Getting that visual indicator into the micro will be a >challenge... if the little coloured ball is opaque then it would be pretty easy to put an IR led and a photo transistor either side of the tube. if daylight is a problem you could put the tube inside the sub, or use daylight filtered opto parts, or pulse the IR led and do a comparison with the ambient level. or whatever. Regards, Simon -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST