Timeout and overflow of arduino

If you post your entire code, we may see something obvious.
(Like using Strings)

Oops - missed those while typing!

Use </> code tags!