Design of a cooling system, which uses one fan driven by a DC motor. A temperature sensor is used to
get the temperature degree. The microcontroller used is Arduino UNO. The motor operation is as follows:
1- Temperature below 30°C, the motor is OFF.
2- Temperature between 30°C and 60°C, the motor runs at half its speed.
3- Temperature above 60°C, the motor runs at its full speed.
What DC motor (data sheet)? What motor driver (data sheet)? What temperature sensor (data sheet)?
i need the code and the proteus simulation only
Do you really expect us to do all the work for you? It does not work that way here. You do the work and we try to help when you get stuck. So give it a try. Post your best effort at the code, describe what the code actually does and how that differs from what you want to do.
And we don't do Proteus here. This forum is for help with the Arduino IDE. If you want Proteus help, go to the Proteus forum.
Reading "this" makes no bell ring and tracing earlier/older doings of OP has never been in my mind. But, ok, I get Your point.
Maybe Arduino should start up some kind of "kindergarten school" for the first year ignorant pupils and make some money. It feels more than silly to read all those questions from people trying to bring down the moon when they don't even know how to set off a fire cracker.