During an EUS procedure, a specialized endoscope equipped with an ultrasound probe is inserted through the mouth or rectum. The ultrasound probe generates sound waves that create detailed images of the internal structures. This allows physicians to visualize and assess organs such as the pancreas, liver, and lymph nodes.