Temperature Data Logger


Introduction: Temperature Data Logger

About: Electrical Engineer

A temperature data logger, is a portable measurement device that is able to recording temperature over a defined period of time automatically. The data can be retrieved and viewed after it has been recorded.

in this device the temperature will record every one minutes in CSV file.

Step 1: You Will Need

1- Arduino Nano.

2- SD card Module.

3- SD Card.

4- RTC Module DS1307 (provide date and timekeeping) .

5- LCD 16*2.

6- LM35 temperature Sensor.

7- AH44E hall effect sensor (Qty=2).

8- 2* 3.7 Volt Lithium Ion Battery (I get it from used laptop battery).

9- Breadboard or PCB and wires.

10- PVC Electric Pipe and Box.

11-Female & male DC Power Connector.

Step 2: Circuit Diagram and Sketch

Connect the circuit as shown in the picture and make sure that the SD and RTC library working probably.

I suggest you to not connect the battery till you finish all the test ,so instead of that use the power of USB port .

Remember the battery will provide the circuit with 7.4 volt (3.7 *2) ,so it should be connected to Vin pin in arduino and arduino module will provide 5 volt to other module.

the other pictures showing how to connect linear hall effect sensor ,it work like a switch but instead of pushing a button the output of the sensor will ramp up to the source 5v when the north side of a magnet approaches the face of the sensor and it will drop to ground when south pole of a magnet approaches the face of the sensor.

I connect two sensors ,one to reset arduino and the other one for LCD back-light.


Note that you can download the RTC library from below link and you can set the clock using library example.


The Code attached .

Step 3: Preparing Battery Holder

follow the pictures to make battery holder.


Lithium-Ion batteries are extremely dangerous and short circuit may cause fire ,so be careful when dealing with these batteries and I suggest to connect protection fuse or protection circuit .

Please Read Safety Hazards of Batteries before start this step.


Step 4: Putting Inside the Box

To protect the LCD I used mobile screen protector.

Step 5: Graph Results

Open the file in Excel and insert the results in the line chart to get the attached chart.

2 People Made This Project!


  • Oil Contest

    Oil Contest
  • Water Contest

    Water Contest
  • Creative Misuse Contest

    Creative Misuse Contest

20 Discussions


1 year ago

Hi. I would like to make one for rapid quenching of steel (900 deg C to 70 deg C within 60S). I need one withthe shortest possible time interval between readings, say less than 1 second. Any ideas? Rgds, PJ.

1 reply

Hi Pandwe,

I just came across your question while browsing around some instructables.

I think making a logger to write data more rapidly is fairly easy, although you might need to do some extra programming to make the file access process efficient.

The bigger challenge for you I think will be the temperature sensor. If you want to go up to 900C, I guess you will need a non-contact sensor. For example the MLX90614 is a non-contact IR temperature sensor, but its data sheet says it goes to 380 C, which is way lower than 900C.

Do you have a specific temperature sensor in mind?

What logging interval are you really aiming for? Presumably the logging only has to be done for a short period of time, while the quenching operation is happening?


Hi, I've encountered a problem where it says RTC is not running, I've done exactly as per your instructions and I've also checked my Tiny RTC to see if there is anything wrong with the connections and whatsoever but everything is fine. Can you help me?

1 reply

Found the solution, it's because of the uncommented lines for the RTC.

Can someone give me some basic guidance please?

Thanks for an interesting project. I have made it, but I do not understand which files to use and how to get the hex file to program it. I am no expert on programming !

Finally I could make a logger for my SDS011 dust sensor. Still got some trouble with the RTC setting though, but thanks for sharing!


2 years ago

how can i do this project without data logger, please help ??

Hi Husham, great project.

How long the battery takes to discharge using your system?

1 reply


Well in the the first attempt ,it took about 22 hours ,2nd attempt 16 hours and 3rd attempt 12 hours only ,So every time I charged the batteries the performance getting worst, so after searching in the web I found that there is under voltage limitation if I cross it ,it will damage these type of batteries ,and that's the reason why when you dismantle a laptop battery you will find battery controller circuit inside to disconnect the batteries in over voltage,under voltage and overheating .

Very nice! I was looking for something just like that for my project.

I'll send you the modifications that I'll have to make so it applies to my system.

please help me to acquire a single sensor output from one analog pin, to store it in sd card with rtc module using arduino

i am not able to design the code please help me

https://www.instructables.com/id/Arduino-Temperature-and-Humidity-logger-with-DHT11/ I've also made an instructables for the modified project!

great project! what about the power consuption, ? cause the back light take a lot of energie

1 reply

Thanks ,yes back-light take a lot of energy that's why I connect it to hall effect sensor ,so I will turn the LED on only when I want to read the value and turn it off again.

Great job!

Do you know how to use laptop to read the data file from the SD card by bluetooth module?

1 reply