Electric valve controls water flow