Vending machine, 100 BC
Modern vending machines had a predecessor that was used to sell holy water in ancient temples. It was invented by Hero of Alexandria. A person put a coin inside the vending machine, and it pushed a lever that opened a valve. This allowed some holy water to pour out. Unfortunately, this brilliant idea was forgotten, and vending machines were reinvented at the end of the 19th century.