The Rain Gauge is sold as a replacement sensor the Maplin weather system. It's easily hackable to use with an Arduino or Raspberry Pi. Internally there's 2 buckets that flip, triggering a reed switch. The Pi needs to continually monitor this switch in case it's triggered.