Facing some problem declaring interrupts

And only when you have done that, perhaps you can explain why you imagine interrupts are appropriate in this situation?

IOW, you need to explain - properly - the situation/ problem. :face_with_raised_eyebrow: