I am using the Arduino Mega with a motor shield. I need to add the RC522. However, pins D9 and D8 are already taken by the motor shield thus I cannot connect the RFID reader.
Is there any solution where I can use both the motor shield and RFID reader?
One solution is to change the headers. The L293 motor shield has male headers only. You can remove the male headers. Then you have to replace them with two- way headers like these: Amazon.com
These are called shield stacking headers. These will let you connect your sensors to the Arduino.