Ultrasonic testing uses piezoelectric transducers to generate and detect ultrasound for non-destructive testing of materials. The transducer converts electrical energy into mechanical vibrations to transmit ultrasound, and vice versa to receive reflected ultrasound. Different frequencies are used depending on the material, with higher frequencies providing better resolution but poorer penetration. Ultrasound travels through materials as compression or shear waves at velocities dependent on the material. Reflections from discontinuities are detected and analyzed to evaluate materials for defects.