What is the principle of CO analyzer?

What is the principle of CO analyzer?