Issue with Arduino Timing
the code flow doesn't make a lot of sense to me. seems to me that you can simplified quite a bit.


  if(s % 100 > 28 || s % 100 &lt; 12)


I would use a few brackets to make it clear to the compiler what you want it to do.