---
title: "Rainfall Measurement"
description: "Connect a rain gauge to a TapHome UI input as impulse counter and add a virtual rain gauge: rainfall for the last 3 and 48 hours to control irrigation."
url: "https://taphome.com/en/docs/functional-areas/irrigation/rain-measurement/"
language: en
lastmod: 2025-11-18
generator: hugo
ai:
  topics: ["rainfall-measurement","rain-gauge","irrigation-automation","impulse-counter","limiting-conditions"]
  questions: ["How do I set up a rain gauge in TapHome?","What wire connections are needed for a TapHome rain gauge?","Where do I find the rain gauge device in TapHome settings?","How can I use rainfall data to control automatic irrigation?","What rainfall statistics does the TapHome rain gauge provide?","How do I create a limiting condition based on rainfall for irrigation?","How do I connect a rain gauge to an impulse counter in TapHome?"]
---

# Rainfall Measurement

Instructions for installing and setting up a rain gauge in TapHome for rainfall measurement and automatic irrigation.

Last updated: 2025-11-18

In this simple guide, you will find instructions on how to set up **Rain gauge** to measure the amount of rainfall over the last 48 hours.

### Installation

- Mount the rain gauge horizontally (use a level) and make sure there is free space beneath it.
- Connect the red wire to +24V and the green wire to any UI input (24UI, Core UI, 2UI, 6UI/6OC, etc.).

Rain gauge wiring: the red wire goes to +24V, the other wire to a universal input (UI) set as impulse counter.



### Configuration

1. Open the TapHome app and enable the appropriate input as an impulse counter. This will create an impulse counter device in the TapHome system.
2. Go to **Settings** → **Virtual Devices** → **Add device** and select **Rain gauge** (**Impulse Counter**).
3. In the rain gauge device, select the appropriate impulse input and save.
4. You now have a functional rain gauge with statistics for the last 3 and 48 hours.
5. You can now use it to activate/deactivate the TapHome-controlled automatic irrigation system.

![Impulse counter device in the TapHome app](https://taphome.com/documentation/functional-areas/novy_1.png)
![Rain gauge device with rainfall over the last 3 and 48 hours](https://taphome.com/documentation/functional-areas/novy_2.png)


### Example

1. In the weekly schedule that controls automatic irrigation, activate **Limiting condition** and select **Formula**.
2. As the input device, select **Rain gauge** (**Impulse Counter**).
3. Select the following rainfall statistics:
   - Total rainfall / integral over 2 days
   - Total rainfall / integral over 3 hours
4. Enter the desired condition in the formula.
![Limiting condition formula with rain gauge rainfall statistics](https://taphome.com/documentation/functional-areas/rainfall2.png)

**See also** — [Irrigation](https://taphome.com/en/docs/functional-areas/irrigation/), [Conversion Functions](https://taphome.com/en/docs/configuration/conversion-functions/).
