A turbine on one end of the pipe can transform the water flow into electricity