Thermocouple
Thermocouple are used as part of RTG (radioisotope thermoelectric generators) to create electricity to power equipment on Mars. The Curiosity rover has a RTG power source.
Thermocouples use a heat source and a heat sink temperature difference to create electricity.
References
Wikipedia article on thermocouples.