A switch is a fundamental part of most electrical and mechanical devices; mechanical switches can be used to select gears in a car’s transmission or used to unlock a door; electrical switches can turn the lights in a room on and off; semiconductor uses to route logic signals within a circuit or control bigger devices.