closed when a rising liquid reaches a predetermined level