A breathing gas system and water trap is improved in respect to the reliability of operation and has an emptying device. A silicon oxide film is formed on an upper surface of an N\u2212-type silicon substrate. The gap is selected so that a stream of gas is carried by the moving surface through the gap into the working volume and the contaminating substance in the working volume is urged away from the gap, thereby reducing flow of the contaminating substance through the gap.