An explanation of how a rain sensor works internally as a variable resistor and LM393 circuit, and details on wiring it to Arduino with a lifespan note.
Automatically detect rainfall with an FC-37 sensor to trigger an alarm or automate closing a window or awning when rain is detected.