During an EBUS procedure, a bronchoscope equipped with an ultrasound probe is inserted through the patient's mouth or nose and advanced into the trachea and bronchi. The ultrasound probe generates sound waves that create detailed images of the surrounding tissues and lymph nodes. If an abnormality is detected, the physician can use a needle to obtain a tissue sample for histological examination.