How can I use attached interrupt on my project?
If you can't rearrange the pins like Majenko suggests in the their comment, something you can do is is use pin change interrupts rather than the regular &quot;external&quot; interrupts.  On the UNO, these are available on all of the &quot;digital&quot; capable pins, which also includes most of the &quot;analog&quot; pins if you have an SMT UNO, or all of them if you have a DIP model.
NiceHood's PinChangeInterrupt library is modeled after the regular attachInterrupt function, so it should be familiar looking to you.  It's in the library manager; you don't need to get it from github.
NOTE: The O.P. opened a another question which seems to be this same thing, only with different context and specific code.  There I've given more details on what's outlined above but in relation to that that specific code in an answer there.