Automatic Toilet Flusher

I know my wife will like it. She is quite tired of the children forgetting to flush. They are very lazy.

But seriously, has anyone ever had trouble with an overflowing toilet? The float shut-off value in the tank failed and the water overflowed from the top of the tank. It was clean water, but the flood caused over $10k in damage. I was thinking about building some kind of moisture alarm.