A sensor for measuring a respiration is disclosed herein. The sensor includes at least one housing (7) having a first cavity (12) with a first port (11) allowing a respiration gas flow, and a second cavity (22) with a second port (21) also allowing a respiration gas flow. The sensor also includes at least one breathing detector (51) for acquiring a signal indicative of the respiration gas flowing through the first cavity and the second cavity. The at least one housing is equipped with at least one additional port (31) for removing the respiration gas flow coming from the first cavity and the second cavity, which additional port being separate from the first port and the second port.