First of all, read this link…
Secondly, if you’re using an Uno you need to comment-put this line…
Thirdly, what is all of this code for in the void loop?…
Pete.