A procedure used to look inside the airways of the lungs. The procedure is done using a bronchoscope, which is either a flexible or a rigid tube that has a camera on one end of it. A bronchoscopy may be used to diagnose HIV-related infections or cancer.