Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum.
Your topic has been moved.
Please show your best attempt at the code; do not forget to use code tags as described in How to get the best out of this forum.
Do you need an interrupt? It depends on your timing requirements but just testing a pin in loop() is a lot faster than the overhead created by ISRs.
Is there anything else that your code needs to do?