I have a stream in the garden, which has a grid that is designed to stop large objects getting drawn into a pipe. The problem I want to try and get around is that there are times when too much rubbish builds up on the grid, causing a back up of flow. What I would like to do is set up 2 sensors, mounted looking into a 3 or 4" diameter plastic pipe that can then read the distance of the water below the sensor, and then compare with the other sensor, and if there is either a difference of more than X between the 2 (X is not yet decided) or if the level is above a trigger height, the processor will then activate a relay or whatever that will trigger a warning device inside the house, via a cable that's already in place. One sensor would be before the grid, the other after it, so under normal operations, there will be no significant difference between the 2, as rubbish builds up, there will be a difference, possibly as much as 500mm, depending on what's got caught on the grid, and the flow rate.
THe key issues are a suitable sensor that will give a reasonably accurate distance to the water level (Maximum of 1.5 metres, minimum of about 300mm, with a reasonable level of accuracy, and if library code to drive the sensors exists. Beyond that, I'm prepared to do some experimenting, as using the Arduino will be a step towards some other projects that I'm looking at that are also Arduino based.
Longer term, I may well look at using a WiFi connect or similar to send the depths on a regular basis to a PC indoors for logging, but for now, the dual sensor concept will give me a sensor that can warn me if there's a significant build up of debris, or equally, a significant flow rate that is approaching the danger level.
As far as the sensing tubes are concerned, if a more reliable return will be obtained by using a float of some sort inside the tube, that's not an issue, as it can be made captive. The tops of the tubes can be closed (apart from a breather access to allow the water to rise) if needed, or open , it makes no difference operationally. I was thinking along the lines of either ultrasonic or infra red sensor units, the main issue is that I want to try and make sure that I don't get false reflections from the tube walls that will distort the return, or make it inaccurate.
Hope that's enough detail for what I'm trying to do.
Thanks
Steve