How can I correctly setup attachInterrupt() in this sketch?

Sorry, I don't understand what you mean, even after reading Nick Gammon

Could you explain it simpler, or just show me an example in code?