DanielBnl:
There is something wrong with my code that makes sure that my Arduino will not reset automatically.
...and what is that "something"?
In other words, please describe what it does or doesn't do. Please answer my question, is this for school? If it does reset, how will you know that it has?