Place a capnograph on the end or side of the endotracheal tube to measure end-tidal carbon dioxide.