A method and device for respiratory monitoring