Device and method for identifying respiration waveforms during cardiopulmonary resuscitation (CPR), the method including obtaining CO2 measurements from a subject undergoing CPR, processing the CO2 measurements by applying a waveform detection algorithm thereto, wherein the waveform detection algorithm is configured to identify respiration waveforms and filtering out compression derived waveform-like signals; and identifying a respiration rate of the subject based on the identified respiration waveforms.