Anaesthesia

Capnography is used for?