When the detector faces upwards and is not covered, it can detect rainfall!
Hydrated farmland and live coral give a redstone level of 3, whereas dry farmland (and dead coral) give no signal.
Proof of concept