Self-service water vending machine with flow sensor