The medulla measures how much carbon dioxide is in a person's blood. When the body makes energy, carbon dioxide gets left over. The body has to get rid of extra carbon dioxide, because it is poisonous. The only way the body can get rid of carbon dioxide is by breathing it out.