add rain gauge functionality