Skip to content
Temperature Logger Using Arduino
Temperature Logger Using Arduino

DIY Temperature Logger Using Arduino and SD Card

DIY Temperature Logger Arduino Project is explained step by step in this detailed guide. This DIY Temperature Logger project uses Arduino, a DHT11 sensor, a 16×2 LCD, push buttons, an RTC module, and an SD card module. By following this DIY Temperature Logger tutorial, you can easily build your own temperature monitoring device at home. The DIY Temperature Logger records temperature data in real-time, stores it on an SD card, and displays it on an LCD. With this DIY Temperature Logger, you can track temperature variations accurately.

This DIY Temperature Logger is an excellent project for electronics hobbyists and beginners learning Arduino. The DIY Temperature Logger can be used in weather stations, greenhouses, and labs. Building this DIY Temperature Logger project will enhance your Arduino and data logging skills. Explore the full step-by-step process to complete the DIY Temperature Logger successfully.


Introduction

Hi friends! In this project, we are going to make a DIY Temperature Logger using Arduino. This project will allow us to measure temperature data in real time, display it on an LCD, and log the data onto an SD card for later use.

This kind of project is useful in:

  • Weather monitoring

  • Greenhouses

  • Laboratories

  • Industrial temperature tracking

Let’s go step by step and build the complete project.


 Materials for the Project

S. NoComponentQuantityBuy Link
1Arduino Nano1Buy Link
2DHT11 Temperature Sensor1Buy Link
316×2 LCD Display (I2C Module)1Buy Link
4RTC Module (DS3231 or DS1307)1Buy Link
5SD Card Module1Buy Link
6Push Buttons3Buy Link
72 Pin Terminal Block1Buy Link
8Jumper WiresAs RequiredBuy Link

Useful Tools 

ToolQuantityPurpose / NotesClick & Buy
Soldering Iron Kit1For making permanent connectionsClick & Buy
Solder Wire (60/40, 0.8mm)1Electrical solderingClick & Buy
Wire Stripper & Cutter1Stripping jumper wiresClick & Buy
Mini Screwdriver Set1For module and relay terminal screwsClick & Buy
Multimeter1Testing voltages and continuityClick & Buy
Hot Glue Gun (optional)1Securing components in placeClick & Buy
Small Pliers1Holding and bending wiresClick & Buy
Heat Shrink Tubing Set1Insulating exposed wiresClick & Buy

 


Download Circuit Diagram  

DIY Temperature Logger Arduino

Circuit Diagram Explanation

The wiring of the project is straightforward. Let’s break it down:

  1. Arduino Nano is the main controller.

  2. 2-Pin Terminal Block is connected to Arduino for power input.

    • One pin to 5V

    • Other pin to GND

  3. 16×2 LCD with I2C:

    • VCC → 5V

    • GND → GND

    • SDA → A4

    • SCL → A5

  4. Push Buttons:

    • Button 1 → D3 → GND

    • Button 2 → D4 → GND

    • Button 3 → D5 → GND

  5. DHT11 Temperature Sensor:

    • VCC → 5V

    • GND → GND

    • Data → D2

  6. SD Card Module:

    • VCC → 5V

    • GND → GND

    • CS → D10

    • MOSI → D11

    • MISO → D12

    • SCK → D13

Once all these connections are complete, we can upload the Arduino code and test the project.


Complete Arduino Nano Pinout Table

Arduino Nano pinout
Arduino Nano pinout
 
 
 
 
PinLabelTypeFunction / Description
1D1 / TXDigital I/OUART Transmit (TX)
2D0 / RXDigital I/OUART Receive (RX)
3RESETPowerResets the Arduino Nano
4GNDPowerGround
5D2Digital I/OExternal Interrupt 0, General I/O
6D3Digital I/OExternal Interrupt 1, PWM (OC2B)
7D4Digital I/OGeneral I/O
8D5Digital I/OPWM (OC0B)
9D6Digital I/OPWM (OC0A)
10D7Digital I/OGeneral I/O
11D8Digital I/OGeneral I/O
12D9Digital I/OPWM (OC1A)
13D10Digital I/OPWM (OC1B), SPI Chip Select (SS)
14D11 / MOSIDigital I/OPWM (OC2A), SPI Master Out
15D12 / MISODigital I/OSPI Master In
16D13 / SCKDigital I/OSPI Clock, Onboard LED
173.3VPower3.3V output (from FTDI chip, ~50mA max)
18AREFPowerAnalog Reference for ADC
19A0Analog InputADC Channel 0
20A1Analog InputADC Channel 1
21A2Analog InputADC Channel 2
22A3Analog InputADC Channel 3
23A4 / SDAAnalog I/OADC Channel 4, I²C SDA
24A5 / SCLAnalog I/OADC Channel 5, I²C SCL
25A6Analog InputADC Channel 6 (input only)
26A7Analog InputADC Channel 7 (input only)
275VPower+5V regulated output
28RESETPowerResets the Arduino Nano
29GNDPowerGround
30VINPowerInput voltage (7–12V recommended)

DHT11 Temperature Sensor Pinout Table

DHT11 – 3-Pin Module
DHT11 – 3-Pin Module
Pin No.Pin NameFunction
1VCCPower supply (3.3V – 5V, typically 5V)
2DATASerial data output (digital signal to Arduino)
3GNDGround


Step-by-Step Guide

Step 1: Power Setup

  • Connect the 2-pin terminal block to Arduino.

  • One side to 5V, the other to GND.

Step 2: LCD Connection

  • Attach the 16×2 LCD using the I2C module.

  • Connect SDA → A4, SCL → A5.

  • Power it with 5V and GND.

Step 3: Push Buttons

  • Use three push buttons for menu navigation and control.

  • Connect one terminal of each to D3, D4, and D5 respectively.

  • The other terminals go to GND.

Step 4: Sensor Setup

  • Connect the DHT11 sensor.

  • Data → D2,VCC → 5V, GND → GND.

Step 5: SD Card Module

  • Connect the module for logging.

  • SCK → D13,MISO → D12,MOSI → D11,CS → D10 .

  • Power it with 5V and GND.

Step 6: Upload the Code

Arduino Code    

  • Write Arduino code to:

    • Read temperature from DHT11.

    • Show it on LCD.

    • Save data to SD card with timestamp.

  • Upload using Arduino IDE.

Step 7: Testing the Project

  • Power the setup.

  • Temperature should appear on the LCD.

  • Data will be stored on the SD card in a .txt or .csv file.

  • You can retrieve the card and analyze the data on your computer.


Applications of DIY Temperature Logger

  • Weather Stations: For continuous environment monitoring.

  • Greenhouses: To track and regulate plant conditions.

  • Server Rooms: To log temperature variations.

  • Cold Storage: For food and medicine safety.

  • Home Labs: For learning data logging techniques.


FAQs

Q1: Can I use Arduino Uno instead of Nano?

Yes, Arduino Uno works fine. Just use the same pin mapping.

Q2: How long can the SD card log data?

It depends on the SD card size. Even a 2GB card can store years of temperature data.

Q3: Can I use a different temperature sensor?

Yes, you can use DHT22 for better accuracy or DS18B20 for waterproof measurements.

Q4: Why use RTC with this project?

RTC ensures accurate date and time stamping of logged data.

Q5: Can this be powered with a battery?

Yes, you can use a 9V battery with a regulator, or a Li-ion battery with a charging module.


Conclusion

We have successfully built a DIY Temperature Logger using Arduino, DHT11, LCD, RTC, and an SD card module. This project not only displays real-time temperature but also logs the data for later analysis. It’s a great project for students and electronics hobbyists to understand sensors, data storage, and Arduino programming.

Leave a Reply

Your email address will not be published. Required fields are marked *