The first coin-operated vending machine was invented by Heron of Alexandria, a Greek inventor, around the mid-first century. He designed it to efficiently dispense holy water to temple-goers, ensuring they did not take more than their fair share. Heron's machine used the weight of an inserted coin to temporarily hold down a lever that opened and closed a door from which the water emerged. This innovation automated the process and also generated revenue for priests. Despite its effectiveness, the design was not further developed for hundreds of years.





