Problen with module robox IRdirection

I found that the example code did not work with an UNO but does work with a MEGA.