When i run this sketch it works great then it eventually and randomly stops operating ...
Read this before posting a programming question
In particular:
Hint: The String class tends to gobble up memory. Try to avoid using that, especially in larger programs.