Ah ha! Digital rain gauge spare parts!
So, get this, for US$15 you can get a rain gauge that does naught but yep, still yep and yep, then maybe nope.
That is, the cover has a funnel and water drips in and cycles the rocker!
That likely needs nothing more than one of the ESP littlins …
… to chirp tich/toch onto a mqtt topic.