Cold water on one side, hot water on the other. From the difference in temperature, the thermo element generates voltage.