What technologies allow the measurement of oxygen saturation and carbon dioxide concentrations in blood?

Describe and explain the conditions in which these technologies are used.