Sparkfun weather hat DEV 12081 on UNO R4 wifi

I have a rather old but succesful setup of a weather shield attached to an arduino R3. My question is if the uno R3 can be replaced with an uno R4 to send the data wirelessly through mqtt without having to make heavy work on the libraries. The original code will be modified for the mqtt platform.
The shield is the dev12081 Weather Shield Hookup Guide - SparkFun Learn
Many thanks in advance.

The easiest thing is probably just to add a wifi shield too, or swap to an uno wifi rev2 (the R4 wifi would probably work, though there may be library incompatibilities between it and the uno…different chips)