Diodes are extremely useful devices for a variety of applications. For instance, they are used for the demodulation of AM radio broadcasts, for rectifiers that convert alternating current into direct current, to conduct damaging high voltages away from sensitive electronic devices, to construct logic gates in electronic devices, for radiation and particle detectors, and for temperature-measuring devices.