Holy Water
The earliest known reference to a vending machine is in the work of Hero of Alexandria, a first-century AD Greek engineer and mathematician. His machine accepted a coin and then dispensed holy water. When the coin was deposited, it fell upon a pan attached to a lever. The lever opened a valve which let some water flow out. The pan continued to tilt with the weight of the coin until it fell off, at which point a counterweight snapped the lever up and turned off the valve.
[video]______________________________[/video]