Added a second thread. The arduino blinks and counts interrupts at the same time