There are two types. One uses semiconductor, or less efficient metal, i.e. thermocouples, working on the principles of the Peltier-Seebeck effect. The other relies on vacuum tubes and the principles of thermionic emission.