A method and system for measuring respiratory rate are disclosed. In a first aspect, the method comprises measuring at least one respiration signal and filtering the respiration signal using a lowpass filter. The method includes peak-picking the respiration signal to determine the respiratory rate and determining a quality metric of the respiratory rate. In a second aspect, the system comprises a wireless sensor device coupled to a user via at least one electrode, wherein the wireless sensor device includes a processor and a memory device coupled to the processor, wherein the memory device stores an application which, when executed by the processor, causes the processor to carry out the steps of the method.