You do need to amend the code to use it with the MKR WiFi 1010. On the code for the master, it’s quite easy. Just change this line:
On the code for the slave, it’s a bit more complicated. The author of the tutorial used an Arduino Uno for the slave. The Uno has EEPROM memory, and thus has an EEPROM library that is used. However, the MKR WiFi 1010 does not have EEPROM memory, and so can’t use the EEPROM library. There is an alternate library that uses the flash memory of the MKR WiFi 1010 to allow functionality (non-volatile data storage) similar to EEPROM:
but it will require multiple lines of the slave code to be modified to use that library. We are happy to help you or your husband out with that.