A criterion for the reality of the spectrum of PT-symmetric Schrödinger operators with complex-valued periodic potentials