Let $p$ be a prime number and $F$ a totally real number field. For each prime $mathfrak{p}$ of $F$ above $p$ we construct a Hecke operator $T_mathfrak{p}$ acting on $(mathrm{mod}, p^m)$ Katz Hilbert modular classes which agrees with the classical Hecke operator at $mathfrak{p}$ for global sections that lift to characteristic zero. Using these operators and the techniques of patching complexes of F. Calegari and D. Geraghty we prove that the Galois representations arising from torsion Hilbert modular classes of parallel weight ${bf 1}$ are unramified at $p$ when $[F:mathbb Q]=2$. Some partial and some conjectural results are obtained when $[F:mathbb Q]>2$.