Thanks for info,but this can be easy done by shelly programmersI .in arduino is couple line of simple code, two sensors and diff on number for example 10 and when is sensor 1 higher for 10C then sensor 2 make relay 1 on.
Whit add on they are not related unfortunately.
When you connect solar panel for water heating than you must measure panel temperature and boiler temperature and when is panel higher for 10 or whatever number than switch relay on.