how does a rain sensor work​?

Rain sensor is a high-tech device used to measure rainfall. Its appearance greatly improves the accuracy and timeliness of rainfall monitoring, and provides vital support for many fields such as weather forecast, hydrology research and agricultural production.