The Jacquard loom is what started [1] the punched card era. Check out this episode [2] of the podcast 99 Percent Invisible for an accessible explanation.
[1] https://en.wikipedia.org/wiki/Jacquard_loom
[2] https://99percentinvisible.org/episode/kids-clothes-articles...