Hey Guys, tell me if this circuit works pls...

If the code is correct, then build the project to connect the motor to pin 8, with a transistor. Also, connect a thermometer to A0.