Why is the integral of $\int_{0}^{\infty} \frac{\sin t}{t}dt =\frac{\pi}{2}$ and $\int_{0}^{\infty}\left|\frac{\sin t}{t}\right|dt = +\infty$? I did not studied improper integral, but for the first integral I have this hint:
what is the importance of saying that $(1/sin(\theta / 2)) - 2/\theta $ is continuous?
could anyone explain for me please?

Write $$a_n=\int_{(n-1)\pi}^{n\pi}\frac{\sin t}t\,dt.$$ Then for odd $n$ the integrand here is positive and for even $n$ it is negative. So $a_1$, $a_3,\ldots>0$ and $a_2$, $a_4,\ldots<0$. By the alternating series test $\sum_n a_n$ converges, and it makes sense to think of $\int_0^\infty\frac{\sin t}t\,dt$ as this infinite sum.
But the convergence is conditional: $\sum_n|a_n|$ diverges. So we can consider that $$\int_0^\infty\left|\frac{\sin t}t\right|\,dt =\sum_{n=1}^\infty|a_n|=\infty.$$