Temperature Fan Control PWM Arduino Help!

What about debugging prints to trace the path through the code?

im about to do it now and see where the problem is because the fan is not moving at all but when i set it high it switch on so its just fan statements and the serial.print is the best hint i didnt even think of it.