TIP120 LED strip dimming with flickering problem + questions delay
Format your code with Ctrl+T. it is than easier to read
Write in after &quot;fade out&quot;      analogWrite(TR, 0);

The fadeout value has in 4 of 5 cases still a value in it.
HTH