Today I found a weird test result! So when I hit the reset button the code runs, but I noticed that this only works if I hit the reset after the code went past the setup loop already! To be more specific, i put a delay at the beginning of the setup loop, and hit the reset while in delay! That didnt get it to work correctly. I must wait till the void loop is reached, then i should hit the reset. And then it sets everything right and works.