Example sketch IRremote ReceiveDump not working

I'm driving the LED through the 5V pin and it is connected to a 220 ohm resistor. I'm using the uno r4 wifi (I am planning to make the remote able to work wirelessly).

When I compile the sketch, I get this:
sketch uses 53224 bytes (20%) of program storage space. Maximum is 262144 bytes.
Global variables use 6816 bytes (20%) of dynamic memory, leaving 25952 bytes for local variables. Maximum is 32768 bytes.

I was worried that I would run out of space with all the matrices, but I guess that wasn't an issue.

I have tried the if statement format you wrote, but it did not do anything. I'm going to look into this issue today (not sure why it didn't work).

To get the code, I just modified the SendRawDemo in v4 of the library so it is just sending the codes once. The final code I got is in post 31.