a rain gauge is used for measuring rainfall.