Code for a Arduino based timer