Using Solid-State Pressure Sensors to Optimize Respiratory-Device Applications