Step 1: Recognizing the integral.
The given integral:
\[
I = \int_0^\pi \left( \frac{\sin x}{x} \right)^2 dx.
\]
This is a standard result in Fourier analysis.
Step 2: Evaluating the integral.
Using the known result,
\[
\int_0^\pi \left( \frac{\sin x}{x} \right)^2 dx = \frac{\pi}{2}.
\]
Step 3: Selecting the correct option.
Since \( I = \frac{\pi}{2} \), the correct answer is (C).