What mechanism allowed Heron of Alexandria's ancient coin-operated device to dispense holy water?

Answer

The weight of the inserted coin

The device developed by Heron of Alexandria operated on a system based on the weight of the coin inserted into it.

What mechanism allowed Heron of Alexandria's ancient coin-operated device to dispense holy water?
inventionJapanvending machine