We describe a constructive method of transforming the Hamiltonian of a system of interacting quantum spins into an entanglement witness. The resulting observable can be used as a simple tool for the detection of entanglement. We verify the efficiency of this detection on a class of analytically solvable 1-dimensional Heisenberg models.