The device (1) has a vent (5) that is removed from a barn room (3). An exhaust air cleaning device (7) is configured to filter the dust and gases in the air. The washing liquid from a washing liquid circuit (17) is acted on a filter element. The exhaust air cleaning device is provided with a first space (9) separated from a second chamber (11). A washing fluid line (19) of a filter element (15) is extended into the second chamber. A sealable washing liquid container (21) is associated with a pump (23) for washing liquid in the washing liquid circuit.