A transistor is a device that regulates current or voltage flow and acts as a switch or gate for electronic signals. Transistors consist of three layers of a semiconductor material, each capable of carrying a current. ... A transistor regulates current or voltage flow and acts as a switch or gate for electronic signals.