I can get the LED to fade on, but can’t get it to fade off. It just fades on, resets to zero, then fades on again... any help out there?

I’m using an arduino uno rev 3 if that matters and I included my code below 

Attachment image
There are no answers yet.
Be the first to answer this question.