Valves with separating membrane