The ultrasound machine generates sound waves that penetrate the body's tissues. These waves bounce back when they hit different structures, and the returning echoes are captured to create real-time images. Unlike X-rays or CT scans, ultrasound does not use ionizing radiation, making it safer for newborns.