thereThere are some issueissues with your map command for.
For example, you are reading value fromthe thermistor from A0value using analogRead(A0), which has parametersa return range from 0 to 1023 and after. After that you attempt to use command map() andmap() to change this value to 0 - 255 or you want to do this, but use the rightwrong syntax. The correct syntax for this command is "Input = map(analogRead(0), 0, 1023, 0Input = map(analogRead(0), 0, 1023, 0, 255);. However, 255);" but I cantcan't see the reason for that because you are reading valuevalues 0-1023 and, change it to 0-255 and, but set point is 650 so. So you never get setpoint because maximum is 255. so try
Try use as input just analogread(0), there sianalogread(0). There is no reason to change input into pwmPWM range and output is for PID library in PWM range as a default so you can send output direct to motor pin, off. Of course use some H-bridge or something like that.