 In an 1886 letter, Charles Sanders Peirce described how logical operations could be carried out by electrical switching circuits.Eventually, vacuum tubes replaced relays for logic operations.Lee De Forest's modification, in 1907, of the Fleming valve can be used as a logic gate.