Body temperature homeostasis is critical for survival and requires precise regulation by the nervous system. The hypothalamus serves as the principal thermostat that detects and regulates internal temperature. We demonstrate that the ion channel TRPM2 [of the transient receptor potential (TRP) channel family] is a temperature sensor in a subpopulation of hypothalamic neurons. TRPM2 limits the fever response and may detect increased temperatures to prevent overheating. Furthermore, chemogenetic activation and inhibition of hypothalamic TRPM2-expressing neurons in vivo decreased and increased body temperature, respectively. Such manipulation may allow analysis of the beneficial effects of altered body temperature on diverse disease states. Identification of a functional role for TRP channels in monitoring internal body temperature should promote further analysis of molecular mechanisms governing thermoregulation and foster the genetic dissection of hypothalamic circuits involved with temperature homeostasis.