Seeduino Xiao and IR relay example in Arduino?

the only part of the code I changed was to use pin 6 on the Xiao for receive and pin 7 for the relay. All the libraries were installed. This sketch works fine on an Arduino nano.
I even tried to get CHATGPT to write a sketch and it would not work.

I noticed an example sketch from Seed that uses an expansion board but that is no what is desired here, I am using the Xiao to save space,

Thanks for any input