Lung endoscopy is a procedure to diagnose problems of the lung. It is accomplished by passing a bronchoscope (a miniature camera on a thin, flexible, lighted tube) into the wind pipe. In addition to viewing the source of the problem is, the doctor can perform biopsies or collect fluids for testing.