During your upper endoscopy or colonoscopy, you lie down and have instruments attached to your body to measure your blood pressure, pulse, and oxygen level in your blood during the test.