One of the most popular projects made with Arduino is a data logger. You can find a lot of these on the internet, but most of them are huge, sophisticated projects with a whole bunch of sensors and unnecessary additions.
I like it when things and simple and clean making it easy for you to learn and replicate. If you understand the simple it is easy to combine many simple to now build something advanced.
In this Arduino project, we will show you how to use an SD card and a DHT11 temperature and humidity sensor to read the ambient temperature and humidity, save their values and play with them using Microsoft Excel. So, let’s start by downloading the necessary libraries. If you do not know how to do this, you might need to check this.
We need the following libraries:
- Simple DHT11 library
- SD card library
The SD card library is installed in every Arduino IDE by default.
Humidity and temperature logger

Here are the hardware parts we need:
- 1 x Arduino Uno Board
- 1 x DHT11 temperature and humidity sensor
- 1 x SD card reader
- 1 x SD card
- jumper wires
Here is schematic.




When everything is connected, you can plug your SD card into the SD card reader and upload the following program to the Arduino.
It just reads the ambient temperature and humidity from DHT11 and saves it on the SD card into a text file named temp.txt.
After uploading the code you can hold the temperature sensor in your hand to increase the temperature reads. After few seconds or more, you can take off the SD card and see the data on your computer. It should look something like this:
21;60
21;59
21;62
21;64
21;70
23;87
23;87
23;89
23;89
24;90
24;90
24;91
24;91
24;91
24;91
24;91
24;91
24;91
24;91
24;92
24;92
25;91
25;91
25;91
25;91
25;91
24;92
24;91
23;89
23;87
23;84
23;87
23;87
23;87
and so on.
To see this it more clearly, we can import it into Excel. That’s why we included the sign “;” in between the temperature and humidity, to let Excel split them with no additional hassle.
Click on the import icon and select the text file. As separator select “;” and that’s all. Your data will be imported into Excel.


I had fun creating a graph using the data fetched and it looks just cool.
Hope I helped you have an idea for your next Arduino project. Enjoy!
You might also like:
- Arduino hx711 tutorial
- Arduino magnetic switch
- Best Arduino Kits
- gifts for engineering students
- gifts for engineers
- mpu6050 Arduino projects
- Current sensor Arduino
- Soil Moisture Sensor With Arduino
- Arduino Count up Timer Using the Nokia 5110 LCD
- Arduino Yun: Integrating or Juxtaposing Arduino with Linux
- Arduino Projects: Line Follower Robot
- Arduino RFID Project for Beginners
- Arduino MOSFET Project
- Which Arduino Should You Buy
- What Can You Do With Arduino Boards?
- Great Alternatives to the Arduino Microcontroller
- Arduino Projects: Color Sensor
- Arduino IDE Alternatives
- Arduino Mega vs. Uno
- Arduino Projects: Arduino LCD Display
- Read Arduino Rotary Encoders
- A Selection of the Best Arduino Simulators
- Arduino Projects: IR Receiver
- Arduino Light Sensor Project
- Arduino Projects: Arduino Decibel Meter
- Arduino Stopwatch Project
- Arduino Bluetooth RC Car Project
- Arduino Temperature Logger Project
- Arduino Projects: Arduino 7 Segment Display
- Arduino Projects: Clap ON Clap OFF Light
- Arduino Relay Project
- Install a Library Onto the Arduino IDE
- Arduino Projects: Rainfall Detector
- Arduino Projects: RGB LED Arduino
- Arduino Stepper Motor Project
- Arduino Projects: Arduino DC Motor Control
- The Top Affordable Arduino Robot Kit
- Arduino 3D Printed Case
- Arduino Projects: Asynchronous LEDs Blink
- Arduino Projects: Ultrasonic Distance Sensor
- Arduino Projects: LED – 4X4X4 LED Cube
- Arduino Car Projects: Build an Obstacle Avoiding Robot With Less Than $30
- Arduino Projects: Servo Potentiometer Control
- Arduino LED Project: Knight Rider
- Arduino Projects: PIR Motion Sensor
- The Difference between Arduino and Raspberry Pi
- Top 9 Books Every Engineer Should Read
- Top Used Sensors for Arduino
- First Hand on the Arduino Uno Board