Pool water temperature over the year

Hi,
how can I measure the maximum temperature value of the day of the pool water but only when the filter is running?