Recall that
\begin{align}
\lim_{u\rightarrow0}\Big(1+ua(u)\Big)^{1/u}\xrightarrow{u\rightarrow\infty}e^{a_*}\tag{0}\label{zero}
\end{align}
if $\lim_{u\rightarrow0}a(u)=a_*$.
On way to check this is by using the inequality
$$\frac{y}{1+y}\leq \log(1+y)\leq y, \qquad 1+y>0$$
Now,
\begin{align}
\frac1x&\Big((1+\sin x +\sin^{2}x)^{1/x}-(1+\sin x)^{1/x}\Big)\\
&=\frac1x\Big(1+\frac{x\sin x}{x}\Big)^{\frac1x}\Big(\big(1+\tfrac{\sin^2x}{1+\sin x}\big)^{1/x}-1\Big)
\end{align}
Let $g(x)=\Big(1+\frac{\sin^2x}{1+\sin x}\Big)^{1/x}$ for $x\neq0$. Notice that
$$\Big(1+\frac{\sin^2x}{1+\sin x}\Big)^{1/x}=\Big(1+\frac{x\sin^2x}{x(1+\sin x)}\Big)^{1/x}\xrightarrow{x\rightarrow0}1
$$
by \eqref{zero}. Extend $g$ to $0$ by setting $g(0)=1$. Then
$$\frac{\log\circ g(h)-\log\circ g(0)}{h}=\frac{\log\big(1+\tfrac{\sin^2h}{1+\sin h}\big)}{\tfrac{\sin^2h}{1+\sin h}}\frac{\sin^2h}{h^2(1+\sin h)}\xrightarrow{h\rightarrow0}\log'(1)=1
$$
since $\lim_{k\rightarrow0}\frac{\log(1+k)-\log(1)}{k}=\log'(1)=1$ by definition of derivative of $x\mapsto\log(x)$ at $x=1$. This means that
$\log\circ g$ îs differentiable at $x=0$ and so, as $g(x)=\exp\circ(\log\circ g)$, an application of the chain rule yields
$$g'(0)=\exp(\log\circ g(0))(\log\circ g)'(0)=e^0\cdot 1=1$$
Similarly, by \eqref{zero}
$$\Big(1+\frac{x\sin x}{x}\Big)^{1/x}\xrightarrow{x\rightarrow0}e$$
since $\lim_{x\rightarrow0}\frac{\sin x}{x}=1$. Putting things together we get that
$$
\lim_{x\rightarrow0}\frac{(1+\sin x+\sin^2x)^{1/x}-(1+\sin x)^{1/x}}{x}=e
$$