Temperature Based Fan Speed Control & Monitoring With Arduino

Sdílet
Vložit
  • čas přidán 22. 11. 2018
  • In this video we have described how to design Temperature Based Fan Speed Control & Monitoring With Arduino and LM35 Temperature Sensor. The microcontroller controls the speed of an electric fan according to the requirement & allows dynamic and faster control and the LCD makes the system user-friendly. Sensed temperature in Celsius Scale and fan speed in percentage are simultaneously displayed on the LCD panel.
    The applications areas of this project are air-conditioners, water-heaters, snow-melters, ovens, heat-exchangers, mixers, furnaces, incubators, thermal baths and veterinary operating tables.
    Code & Circuit Diagram Link : how2electronics.com/temperatu...
    Drop a like if you liked the video.
    Don't forget to subscribe our channel for more Electronics project and tutorials.
    Website: how2electronics.com/
    Facebook: / electronicsbyalex
  • Věda a technologie

Komentáře • 174

  • @zehrayarar9708
    @zehrayarar9708 Před 3 lety +1

    It has been a very good work, I will try to allocate a place in my project.

  • @suhaansheikh1078
    @suhaansheikh1078 Před 4 lety +9

    The output volts of this circuit is just around 5v, which means if you are running a 12v fan the speed is half its capacity even at 100% fan speed.

  • @HealthyRasoi
    @HealthyRasoi Před 5 lety +3

    Looking great... thanks for Sharing

  • @MyNumber1gamer
    @MyNumber1gamer Před 4 lety +2

    Would it be possible to add a Max voltage (12V) option by adding an additional wire from the negative terminal of the battery to the negative terminal of the motor with a switch in the wire? I want to have the option to turn it fully to max manually if needed (for quick ventilation)

  • @elouachanabdessamad5355
    @elouachanabdessamad5355 Před 5 lety +12

    Hello, is it possible if you could show the LCD inputs? (e.g: VSS, VDD, D0, D1…etc). I've tried this, but the LCD wont light up.

  • @rav6045
    @rav6045 Před 4 lety +1

    Thanks buddy....it was very helpful

  • @joriecabalan7820
    @joriecabalan7820 Před 3 lety

    Good day! Do you have a the same circuitry but using keypad shield v2? Thanks

  • @Fth024
    @Fth024 Před 2 lety

    Hello does this also working for a 120v - 220v Inline duct ventilator for houses?

  • @andrihamsohham8721
    @andrihamsohham8721 Před rokem +1

    U r a life saver, thanks alot for ur video, my final semester is giving me headache, ur video really helps

  • @henrikasvaiciulis3725
    @henrikasvaiciulis3725 Před 3 lety

    does it matter, if i solder all small components, or put everything in breadboard
    ?

  • @Nebuchadnezzar_XXIV
    @Nebuchadnezzar_XXIV Před rokem +2

    Can I use 10uf 63v capacitor for this?

  • @johnaaronvillamero1322

    Hi can you use any volt for the transistor as long as its 10 micro f, and I keep getting this error when im uploading it on the arduino ,Sketch uses 4350 bytes (13%) of program storage space. Maximum is 32256 bytes.
    Global variables use 246 bytes (12%) of dynamic memory, leaving 1802 bytes for local variables. Maximum is 2048 byte, please help

  • @mdratonali3253
    @mdratonali3253 Před 2 lety

    What should i change in the program if i want start my dc fan in 20 degree celcius temparature? Or min temp = 20

  • @shivangipingale903
    @shivangipingale903 Před 5 lety

    I tried connecting as shown in the video but LCD won't light up. Are there any other connections for LCD because there are connections for two wires (blue and red) which can be seen in pictures but not in diagram. Please answer.

  • @addaemichael4683
    @addaemichael4683 Před 2 lety

    I will be glag if you can use this setup to use two lm35 to control two fans showing the two temperatures and the two fan speed on the screen.

  • @bernardbaldesco4402
    @bernardbaldesco4402 Před 3 lety +1

    can i use stand fan on this project?

  • @parthsarvaiya9466
    @parthsarvaiya9466 Před 4 lety +2

    Fan ki speed control krne ke liye pwm method use kri hai?????

  • @melisa6034
    @melisa6034 Před 4 lety

    Hi teacher. How can we add code, if we want to use four potantiometer(for PIDcontrol) kp, kı, kd and desired

  • @nadamokhtar8320
    @nadamokhtar8320 Před 2 lety

    why multiplying fanspeed by 1.5 exactly? thanks in advance.

  • @bijayshah4445
    @bijayshah4445 Před 4 lety +2

    hello sir, how to make this whole simulation on screen, pls answer sir would be really grateful.

  • @danmarccuaderno257
    @danmarccuaderno257 Před 2 lety

    Can I use more than one fan to control?

  • @S0K0N0MI
    @S0K0N0MI Před 2 lety

    Does controlling the fan with PWM cause motor noise?

  • @victorchiumbe4597
    @victorchiumbe4597 Před 3 lety +1

    Nice project.. Can i have your circuit diagram or your simulation diagram please

  • @jyaniharshil5585
    @jyaniharshil5585 Před 2 lety

    Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected .
    As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...

  • @nishajadhav2105
    @nishajadhav2105 Před 2 lety +1

    Hiii how to give heat to the ??

  • @denethsankalpa
    @denethsankalpa Před 2 lety

    worked for me thank you

    • @mushfiqurrahman4548
      @mushfiqurrahman4548 Před 2 lety +2

      Can I talk to you on this project?? I'm also working on it. And I've done the same as mentionedin the video. But mine isn't working....

    • @jasonjaycruz5214
      @jasonjaycruz5214 Před 2 měsíci

      @@mushfiqurrahman4548 mine not working, do you have a clearer circuit diagram?

  • @punithgamerff3031
    @punithgamerff3031 Před 3 lety

    What type of motor used

  • @harshbhadani537
    @harshbhadani537 Před 3 lety

    Great

  • @jeliuszelo9181
    @jeliuszelo9181 Před 2 lety

    Hello ,did your wiring diagram not right, cause i have try to do it but its not working

  • @aneeshaks6550
    @aneeshaks6550 Před 3 lety

    Plz sir, can u upload the tinkercad link too?

  • @methmalrosa
    @methmalrosa Před 4 lety

    I need to use the DHT11 sensor for this please kindly help with the cording

  • @shivkushwaha5356
    @shivkushwaha5356 Před 5 lety

    sir can I used ac bulb drimmer in fan output through the optocupler

    • @HowtoElectronics
      @HowtoElectronics  Před 5 lety

      You might not use with this circuit. You need some additional control circuit like triac BT136 with opto coupler MOC3021.

  • @gokulerusappan5143
    @gokulerusappan5143 Před 2 lety

    If temperature min is 30. The fan speed couldn't go 0 instead of that it should run at 50% of speed. How can i do that?
    Could you help me...

  • @m_2000_b
    @m_2000_b Před 4 lety

    Hey,
    Where should i add the wiring on the arduino for a rotation motor for my incubator??

  • @gemobi4562
    @gemobi4562 Před rokem

    After simulating the circuit on proteus 8, the LCD doesn't display anything

  • @matthiash.454
    @matthiash.454 Před 3 lety +1

    Cool project 👍🏼
    Had a question: Is it also possible to connect a 5 volt fan ? 🤔
    Would the display also work with 5 volts? 🤔
    What would I have to change in the wiring diagram ? 🤔

  • @shivugowda1084
    @shivugowda1084 Před 3 lety

    Sir, pls help me.
    Fan starts and runs only for 1 Second and stops.
    I tried by changing program by min temp as 20 degree Celsius, no use geting same.
    Whats the problem pls help me.

  • @navnathambre2801
    @navnathambre2801 Před 3 lety

    So nice video sir. Can i get 1 small project ??

  • @ahmedal-shwakh9129
    @ahmedal-shwakh9129 Před 4 lety

    Sir the only thing is working is the led, but unfortunately nothing else is working i checked the connections and tried another arduino but nothing worked can you please help me

  • @shivkushwaha5356
    @shivkushwaha5356 Před 5 lety

    great job brother

  • @anirbanmandal3123
    @anirbanmandal3123 Před 5 lety

    Nice project

  • @enriquemacaranasiii484
    @enriquemacaranasiii484 Před 5 lety +1

    Is the code is working?

  • @ilocanodaytoy6494
    @ilocanodaytoy6494 Před 4 lety

    Can I change the temperature sensor with the other type of sensor.i will try it this one into my egg incubator.

  • @dulanramanayaka7864
    @dulanramanayaka7864 Před rokem

    Can we use another NPN transistor for this without using 2N2222 ?

  • @electronic7979
    @electronic7979 Před 5 lety +1

    Nice project 👍

  • @nice1693
    @nice1693 Před 2 lety

    sir, Can you share new circuit diagram

  • @mohammadameerhamza7678

    The link that you've given in the description isn't opening. I need the code

    • @ashok_reddy.37
      @ashok_reddy.37 Před 4 lety +1

      #include LiquidCrystal lcd(2,3,4,5,6,7); int tempPin = A0; // the output pin of LM35 int fan = 11; // the pin where fan is int led = 8; // led pin int temp; int tempMin = 30; // the temperature to start the fan 0% int tempMax = 60; // the maximum temperature when fan is at 100% int fanSpeed; int fanLCD; void setup() { pinMode(fan, OUTPUT); pinMode(led, OUTPUT); pinMode(tempPin, INPUT); lcd.begin(16,2); Serial.begin(9600); } void loop() { temp = readTemp(); // get the temperature Serial.print( temp ); if(temp < tempMin) // if temp is lower than minimum temp { fanSpeed = 0; // fan is not spinning analogWrite(fan, fanSpeed); fanLCD=0; digitalWrite(fan, LOW); } if((temp >= tempMin) && (temp tempMax) // if temp is higher than tempMax { digitalWrite(led, HIGH); // turn on led } else // else turn of led { digitalWrite(led, LOW); } lcd.print("TEMP: "); lcd.print(temp); // display the temperature lcd.print("C "); lcd.setCursor(0,1); // move cursor to next line lcd.print("FANS: "); lcd.print(fanLCD); // display the fan speed lcd.print("%"); delay(200); lcd.clear(); } int readTemp() { // get the temperature and convert it to celsius temp = analogRead(tempPin); return temp * 0.48828125; }

  • @matthiash.454
    @matthiash.454 Před 3 lety +1

    Super project :-) short question can I also connect 2 fans ? Is it true that I have to supply the Arduino with 12 volts is not too much for the "Uno" ?

    • @HowtoElectronics
      @HowtoElectronics  Před 3 lety

      Use 9v, 2A adapter.
      The current requirement is high

    • @matthiash.454
      @matthiash.454 Před 3 lety

      @@HowtoElectronics Ok thanks, does it have then no effect on the performance (speed) of the fan if only 9 volts although it has 12 volts ?
      Can I also connect 2 fans ?

    • @HowtoElectronics
      @HowtoElectronics  Před 3 lety

      Use 12V,2A Adapter it will have no affect on speed. Yes you can connect multiple fan as well.

    • @matthiash.454
      @matthiash.454 Před 3 lety

      @@HowtoElectronics it says above (The current requirement is high) that the Arudino Uno board should go down to 9 volts so that the voltage is not too high ? Unfortunately I am not an electronic engineer so I have to ask ;-)

  • @aisyahpana8251
    @aisyahpana8251 Před 5 lety

    Why my lcd is not working

  • @rajjogdand126
    @rajjogdand126 Před rokem +1

    sir make this project but it is not working ....plz help me sir

  • @mahammadriyaz4757
    @mahammadriyaz4757 Před 3 lety

    Sir all connections are done . but the temperature is decrease when heating the temperature sensor what is the worng ??? Plz help me sir

  • @sarwarali329
    @sarwarali329 Před 5 lety +1

    How to control room fan extending this project. Plz make a video on that

  • @sandeepvadali2210
    @sandeepvadali2210 Před 4 lety +2

    Sir please tell me how to connect LCD to bread board and clear picture of circuit please sir

    • @tonysicily2687
      @tonysicily2687 Před 4 lety

      sandeep vadali which lcd display do you have?

  • @parthsarvaiya9466
    @parthsarvaiya9466 Před 4 lety

    Fan are not rotate????

  • @dharshant1082
    @dharshant1082 Před 3 lety

    Can I use 9v hw or ew battery instead of 12v.
    If I use 9v, it effects on fan speed or not?
    Pls reply

  • @prayagjain6211
    @prayagjain6211 Před 5 lety

    Can you show the circuit diagram where capacitors diodes and resistors are connected to breadboard without the wires

    • @HowtoElectronics
      @HowtoElectronics  Před 5 lety

      Visit the link in description. Circuit diagram is already there

    • @prayagjain6211
      @prayagjain6211 Před 5 lety

      I only want a clear image of the hardware as to where we can connect the diodes on breadboard

  • @raj-xp2bq
    @raj-xp2bq Před 5 lety

    Sir how we have to connect the lcd pins 2,3,4,5etc...its confusing in breadboard pls answer

  • @piyushsingh5680
    @piyushsingh5680 Před 4 lety +1

    Can we use it for AC fan...

  • @raylanvalencia2699
    @raylanvalencia2699 Před 5 lety

    Hello, I would be doing this project and just wondering if i need to download any additional libraries (LM35 & LCD) on Arduino in order for the codes to work?

    • @HowtoElectronics
      @HowtoElectronics  Před 5 lety

      No any additional libraries

    • @raylanvalencia2699
      @raylanvalencia2699 Před 5 lety

      @@HowtoElectronics are you able to show the LCD input connections? (e.g VSS, D1, D2.. etc)

    • @HowtoElectronics
      @HowtoElectronics  Před 5 lety

      Supply vcc to pin 2, 15
      Supply GND to 1,3,5,16
      Connect Arduino pins to LCD pin 4,6,11,12,13,14

    • @ayamagdy8922
      @ayamagdy8922 Před 2 lety

      Did you did this project?

  • @marinenav8
    @marinenav8 Před 3 lety

    😍

  • @dusw20-phamvan58
    @dusw20-phamvan58 Před rokem

    Who can explain for me, what is 32 and 255. And why fanSpeed = 1.5 * fanSpeed

  • @deepthivs6202
    @deepthivs6202 Před 3 lety

    sir can we use lm393 or lm339 instead of lm35 for the same exp

  • @mahe1011
    @mahe1011 Před 2 lety

    Block diagram where

  • @yawarsaeed6499
    @yawarsaeed6499 Před 4 lety

    Thanks for sharing such an Awesome project. Code is not available at the given link , please send me the link where I can get the code.
    Thanks

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety

      Code is already in the description. Use computer to see code. Code is invisible in mobile view.

    • @yawarsaeed6499
      @yawarsaeed6499 Před 4 lety

      @@HowtoElectronics Ok, Thanks

  • @bhavithpala8785
    @bhavithpala8785 Před 4 lety

    Hii can I get report on this

  • @suhaansheikh1078
    @suhaansheikh1078 Před 4 lety

    Can i use Arduino Nano for this project?

  • @MuhammadAwais-ys1wf
    @MuhammadAwais-ys1wf Před 5 lety

    lcd is not displaying anything...how can i fix it
    other circuit is good and working

  • @parthsarvaiya9466
    @parthsarvaiya9466 Před 4 lety +2

    Bhai fan rotate nhi Ho rha hai!!!!

  • @sandeepvadali2210
    @sandeepvadali2210 Před 4 lety

    Sir please send me clear photo of circuit and please tell me how to connect LCD to bread board

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety

      The clear Circuit is given in link in description, visit the link and follow the circuit. And connect exactly the same as shown in photo.

  • @parthsarvaiya9466
    @parthsarvaiya9466 Před 4 lety +1

    Bhai me dht 11sensor use kru to chalega aur and capacitor 10Marco farad vala 9volt ka Laina hai ki?????

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety +1

      10uf more than 16V. Lower value capacitor will tear out due to excessive voltage.

    • @parthsarvaiya9466
      @parthsarvaiya9466 Před 4 lety +1

      @@HowtoElectronics please answer the my question, dht 11 sensor use kr sakte hai par????

    • @parthsarvaiya9466
      @parthsarvaiya9466 Před 4 lety +1

      @@HowtoElectronics our muje actual fan ki speed kaise control kru triac use kru sir??????

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety +1

      DHT11 is not a good choice for this application. Rather use DS18B20.

    • @parthsarvaiya9466
      @parthsarvaiya9466 Před 4 lety +1

      @@HowtoElectronics but why I can't use of dht 11 sensor ???

  • @kamalprajapati2913
    @kamalprajapati2913 Před 4 lety

    Analogread was not declared error in program how can fix it

    • @scottlevine4442
      @scottlevine4442 Před 3 lety

      It's case sensitive. So it has to be "analogRead()"

  • @ameirafiq2135
    @ameirafiq2135 Před 4 lety

    Hi sir, i want to ask a question. Is the temp X 0.48828125 is a fixed formula? Is there explanation on how you get that formula? i googled it but no explanation about it. Hopefully you can respond my comment asap. Thanks

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety

      We are converting the analog output voltage given by LM35 into 10 bit resolution.
      Check the LM35 Datasheet for change in temp value according to analog voltage.

    • @ameirafiq2135
      @ameirafiq2135 Před 4 lety

      @@HowtoElectronics ohh okayy thanks. It is very helpful

  • @nandhiniganesh1967
    @nandhiniganesh1967 Před 4 lety

    Which ardinuo version should I use for the program to work ?? Plzzz help me

  • @vishalchoudary516
    @vishalchoudary516 Před 4 lety

    lcd kush bi show nhi kr rhi or fan bi control nhi ho rha

  • @charan860
    @charan860 Před 4 lety +1

    Please tell brother

  • @ratinislam4745
    @ratinislam4745 Před 4 lety

    hello sir, i have a few questions. would be really Grateful if you could just answer it briefly :
    1) if i use a dsb18b20 sensor instead of lm35 what specific changes need to be made for the current setup?
    2)is it possible to use this setup to drive a peltier(TEC) instead of a fan to keep temp at a low level?
    3)also will it be possible to run a peltier and a fan at the same time using this controller (using a single power source)?
    Thank you.

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety +1

      1. See the example code of DS18B20.And just add DS18B20 Code in the main code.
      2. You can set up peltier with it, but peltier requires a lot of power. So be careful regarding the power source
      3. Peltier and fan can be run at the same time not an issue..

    • @ratinislam4745
      @ratinislam4745 Před 4 lety

      @@HowtoElectronics thanks for the valuable feedback.

    • @dusw20-phamvan58
      @dusw20-phamvan58 Před rokem

      @@HowtoElectronics i can use 1k2 resistor instead of 1k resistor

  • @pinegaming4849
    @pinegaming4849 Před 4 lety

    can i use 2222a diode

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety +1

      Yes

    • @pinegaming4849
      @pinegaming4849 Před 4 lety

      How To Electronics tq sir but i have one more question, for what the jumper wire red and blue on the your lcd

  • @hsushdvdhghdubehdh4176

    Hi sir can i use 9v battery? Please answer it thx

  • @matharsikandar1141
    @matharsikandar1141 Před 5 lety +1

    bro you giving your link in the decrisption is not working...plz check it and tell me coding of this project...

    • @et8682
      @et8682 Před 3 lety

      #include
      LiquidCrystal lcd(2,3,4,5,6,7);
      int tempPin = A0; // the output pin of LM35
      int fan = 11; // the pin where fan is
      int led = 8; // led pin
      int temp;
      int tempMin = 30; // the temperature to start the fan 0%
      int tempMax = 60; // the maximum temperature when fan is at 100%
      int fanSpeed;
      int fanLCD;

      void setup() {
      pinMode(fan, OUTPUT);
      pinMode(led, OUTPUT);
      pinMode(tempPin, INPUT);
      lcd.begin(16,2);
      Serial.begin(9600);
      }

      void loop()
      {
      temp = readTemp(); // get the temperature
      Serial.print( temp );
      if(temp < tempMin) // if temp is lower than minimum temp
      {
      fanSpeed = 0; // fan is not spinning
      analogWrite(fan, fanSpeed);
      fanLCD=0;
      digitalWrite(fan, LOW);
      }
      if((temp >= tempMin) && (temp tempMax) // if temp is higher than tempMax
      {
      digitalWrite(led, HIGH); // turn on led
      }
      else // else turn of led
      {
      digitalWrite(led, LOW);
      }

      lcd.print("TEMP: ");
      lcd.print(temp); // display the temperature
      lcd.print("C ");
      lcd.setCursor(0,1); // move cursor to next line
      lcd.print("FANS: ");
      lcd.print(fanLCD); // display the fan speed
      lcd.print("%");
      delay(200);
      lcd.clear();
      }

      int readTemp() { // get the temperature and convert it to celsius
      temp = analogRead(tempPin);
      return temp * 0.48828125;
      }

    • @joeldenzel8724
      @joeldenzel8724 Před 2 lety

      This coding doesn't work, I found out. That there was something missing and I found it

    • @OmerOmer-sj8tv
      @OmerOmer-sj8tv Před rokem

      @@joeldenzel8724 what is it

  • @leuy7120
    @leuy7120 Před 2 lety

    don't know why my lcd not working

  • @Engrthings
    @Engrthings Před 5 lety

    Bro can i use dc motor instead of Fan...? Please answer

  • @fariszulkepli8005
    @fariszulkepli8005 Před 3 lety

    can i want your coding

  • @netipallisanjay3819
    @netipallisanjay3819 Před 4 lety

    HELP........Bro i connected exactly the same, i've got LCD display /*TEMP*/ but fan is not giving output.

  • @ayushimankar8360
    @ayushimankar8360 Před 2 lety

    Can we operate this at 230V?

  • @LitTheSpark79
    @LitTheSpark79 Před 4 lety +1

    My LCD display is not showing help me

  • @jasminekatepatino9860
    @jasminekatepatino9860 Před 3 měsíci

    Can i use stand fan? Or any fan?

  • @Favillas05
    @Favillas05 Před 3 lety

    How can i do the same with MAXX6675 thermocouple instead of the LM35 ? PLS HELP

  • @nibincb7775
    @nibincb7775 Před 5 lety

    Program code

  • @ahmedal-shwakh9129
    @ahmedal-shwakh9129 Před 4 lety

    Can someone give me the code please

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety +1

      www.how2electronics.com/temperature-based-fan-speed-control-monitoring-with-arduino/

    • @ahmedal-shwakh9129
      @ahmedal-shwakh9129 Před 4 lety

      @@HowtoElectronics thanks. But i couldn't find it in this link

  • @mikeryanbonsorio8777
    @mikeryanbonsorio8777 Před 5 lety

    Sir. How will it be use to an ac fan?

    • @HowtoElectronics
      @HowtoElectronics  Před 5 lety +1

      Using opto coupler MOC3021 and triac IC like BT136.

    • @mikeryanbonsorio8777
      @mikeryanbonsorio8777 Před 5 lety

      @@HowtoElectronics How will i connect it sir? Please make a video for an ac fan using that circuit. That will be very useful.

  • @kingmarri9275
    @kingmarri9275 Před 4 lety

    Lcd is not showing any think

  • @charan860
    @charan860 Před 4 lety

    Brother during compilation it showing warning liquid crystal i2-c how to fix it

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety

      Check the library. You might be using i2c library or simple 16 pin lcd library.

    • @charan860
      @charan860 Před 4 lety

      @@HowtoElectronics only liquid crystal hedderfile enough brother

    • @charan860
      @charan860 Před 4 lety

      can i upload code other computer

    • @charan860
      @charan860 Před 4 lety

      WARNING: Category 'Display, Hangul' in library LiquidCrystal_I2C_Hangul is not valid. Setting to 'Uncategorized it showing like this brother

    • @HowtoElectronics
      @HowtoElectronics  Před 4 lety

      Use other PC to upload code.

  • @vishalchoudary516
    @vishalchoudary516 Před 4 lety

    akya apka wattsapp no mil skta hai kush pushna hai iske bare mai

  • @levisandy1995
    @levisandy1995 Před 3 lety

    would it work if i wanted to remove the lcd ?Thank you

  • @jyaniharshil5585
    @jyaniharshil5585 Před 2 lety

    Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected .
    As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...