New User trying to assign internal ID Scan for Dynamixel = zero

I see that you are using the example from the Dynamixel2Arduino library, that example is using the “incorrect” DXL_DIR_PIN for the DXL MKR Shield. That example uses pin 2, instead of A6. Please see more details in this post

It was for the Portenta, but it works the same for any MKR board too. I do have a MKR 1010 WiFi and I have no problem using the Dynamixel2Arduino library directly.