Ac. Motor speed controlled by water flow.

Hi friends,
I need you help about a project i want to make. I want to control an ac motor speed with a water flow sensor. Actually i want the motor speed to increase when the asking water flow increase .
Any help for hardware and software?

Thank you.