Electrode corrosion would occur, almost certainly, not due to oxidisation but to electrolysis. To avoid this, the sensing current would have to be A.C., which really complicates matters from a design point of view.
My money is still on the reed switch - fix it to the pipe interior, and float a...