At the time they looked for preventive measures for the future, but could not find anything.
Now he and his friends had come up with the solution, and he believed it could save farmers and holiday home-owners a lot of water and strife.
People could set the device to a timer, which would activate when it detected the flow of water and then shut off the pump when the time limit was reached.
The prototype they created demonstrated its function by turning off a lightbulb after 10 seconds of continuous use.
The fully developed device would include a valve and would work on leaks on the farm, or even if someone left a sink running in their house.
Every bucket of water mattered to those in areas of harsh seasonal conditions such as Central Otago, and farmers he had spoken to expressed interest in the product, Dan said.
The pupils worked with the University of Otago computer science department to develop the device.
They had already secured a local electronics manufacturer to build it and were working with two plumbing businesses to sell it.
The next step was raising funds to have the technical specifications officially written up so it could be manufactured.
While they were still figuring out pricing for the device, inquiries were open already for those interested, Dan said.
Profits from the device would be put towards their education and they planned to give a portion to charity.