Holy water.-the holy-water vending machine was invented by the greek mathematician hero, or at any rate was first described by him. visitors to temples in alexandria, egypt placed a five-drachma coin in the machine and received a measured amount of holy water for ritual cleansing before joining in the rites conducted within. the machine depended on the weight of the coin to open the valve that allowed the water to flow. given the relatively simple mechanism, it is quite likely that the first vending machine fraud also occurred at that time. hero is also credited with devising the first steam engine, although given the widespread availability of slaves it was not put to practical use.