Arduino Cooling System using DHT Sensor for beginners


An Arduino Cooling System using DHT Sensor for beginners is an essential aspect of many electronic devices to prevent overheating and damage to the components. In this project, we will use an Arduino board to build a cooling system using a DTH11 temperature sensor, fan, and LCD display. The system will detect the temperature and turn on the fan when the temperature rises above a set limit.

The purpose of this project is to build a cooling system using an Arduino board. The system consists of a DTH11 temperature sensor, a fan, and an LCD display. The objective is to regulate the temperature by activating the fan when the temperature exceeds a certain threshold.

When the Arduino board senses that the temperature has risen above 28°C, the fan is activated to reduce the temperature. The fan will continue to run until the temperature drops below the set threshold. The system is designed to provide a simple and efficient way to maintain a comfortable temperature in a given environment. The LCD display will show the current temperature and whether the fan is on or off.

Hardware Required

Components#Buy Links
Arduino UNO1Buy Now
DTH11 Temperature Sensor1Buy Now
LCD I2C 160A display1Buy Now
Fan 5V1Buy Now
Relay1Buy Now
Jumper WiresFewBuy Now
Breadboard1Buy Now

What is the DTH11 Temperature Sensor

The DHT11 is a digital temperature and humidity sensor that is commonly used in electronic projects. It is a low-cost sensor that provides a convenient way to measure temperature and humidity with high accuracy. The sensor is available in a compact package that includes a sensor and a PCB with a few additional components for signal processing.

The DHT11 sensor uses a single-wire serial interface to communicate with the Arduino board, and it is very easy to use in any project. The sensor provides temperature and humidity data in a digital format, making it easy to read and process using the Arduino board.

DTH11 is a low-cost digital temperature and humidity sensor that can be used with Arduino. It measures the temperature in the range of -20 to 60°C with an accuracy of ± 2°C. The humidity range is 20 to 90% with an accuracy of ± 5%.


  1. Input voltage: 5V DC
  2. Temperature range: -20 to 60°C
  3. Humidity range: 20 to 90%
  4. Accuracy: ± 2°C for temperature and ± 5% for humidity
  5. Dimensions: 23 x 12 x 5 mm


  1. Low-cost
  2. Easy to use with Arduino
  3. Compact size
  4. Reliable and accurate
  5. Digital output



DHT11 Pinout Configuration

Pin NameDescription
VccPower supply 3.5V to 5.5V
DataOutput through Serial Data
NCNot used
GNDGround Pin

Circuit Diagram


Working Explanations

The working of an Arduino Cooling System using DHT Sensor for beginners is very simple. here The DTH11 temperature sensor will be connected to the Arduino board, which will monitor the temperature. When the temperature reaches above 28°C, the fan will turn on through a relay. The fan will keep running until the temperature goes back below 28°C. The temperature will be displayed on an LCD display.

Installing Arduino IDE Software

First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow

Installing Libraries

Now when you are Ready to upload the code, to the Arduino Board you will need first to add the Following Libraries in Arduino, If you Learn How to add the library in the Arduino step-by-step guide click on how to install the library Button given Blow


//For more Projects:

#include <dht11.h>
#include <LiquidCrystal_I2C.h>
#define DHT11PIN 2 //  DATA -> Pin 2
#define ventilateurPIN 1 // Pin -> for Fan
LiquidCrystal_I2C lcd(0x27, 20, 4);

dht11 DHT11;

void setup()
{ pinMode(ventilateurPIN,OUTPUT); //sets the Pin 2 digital of the Arduino in output mode

void loop()

lcd.setCursor(0, 0);

lcd.print("temperature= ");

if ((float)DHT11.temperature >28) {
digitalWrite(ventilateurPIN,HIGH); // the fan starts to turn
else {
digitalWrite(ventilateurPIN,LOW); // the fan stops


  1. Weather stations
  2. Greenhouses
  3. HVAC systems
  4. Home automation
  5. Industrial automation


In this project, we have built a cooling system with Arduino that uses a DTH11 temperature sensor to detect the temperature and turn on the fan when the temperature rises above a set limit. The LCD display shows the temperature, and the fan keeps running until the temperature goes back below the limit. This system can be used in various applications where temperature control is essential.

See Also

  1. Interface MS5611 Barometric Pressure Sensor with Arduino Tutorial
  2. Digital Clock with Arduino using DS3231 RTC and 7-segment LED
  3. MQ-2 Smoke Sensor with Arduino for Beginners

Leave a Comment