It isn’t that hard to make an electronic rain gauge if you have a steady source ... power hit multiple times an hour which would affect battery life. Not the most complex project, but more ...