It was created by the Greek mathematician Heron.

People put coin in a slot to get holly water.

Once the coin was in the machine, it fell in a pan and its weight was forcing a valve to open to release small amount of holy water.

[Source: www.greekreporter.com]