The procedure involves the use of a transducer, a handheld device that emits sound waves. When these sound waves bounce off internal tissues and organs, they create echoes that are captured by the transducer. These echoes are then processed by a computer to generate real-time images. This technique is non-invasive and generally considered safe for both the patient and the fetus if used during pregnancy.