Which of the following devices is made of two different metals and produces a voltage when the metals are exposed to heat?

A. An accelerometer
B. A photovoltaic cell
C. A crystal
D. A thermocouple