Let $(A^{\mathbb Z},p^{\mathbb Z},T)$ and $(B^{\mathbb Z},q^{\mathbb Z},S)$ be Bernoulli shifts over finite alphabets. They are measure-theoretically isomorphic if and only if
\begin{align*}
H(p)=H(q).
\end{align*}
The same statement holds for countable alphabets with finite entropy.