Semiconductor devices can display a range of useful features such as passing current more easily in one direction than the other, showing variable resistance, and sensitivity to heat or light. Because the electrical properties of a semiconductor material can be modified by doping, or by the application of light or electrical fields, devices made from semiconductors can be used for switching, amplification, and energy conversion.