The history of automated selling reaches much further into the past than most people expect.
When a coin landed on a small platform, its weight temporarily activated the water-release mechanism.
Its clever design https://www.dideadesign.com/forum/topic/118016/jiliwin