There were relays used for railroad signaling in the 19th century. Union Switch and Signal was formed in 1881. The first active electronic device, the deForest Audion, was developed in 1906.