In this article, we are going to make a data-logger using an Arduino Ethernet shield.
The Arduino Ethernet shield has a Micro SD card slot which is used to insert the SD card in it and store the data in it.
1. Arduino Uno
2. Ethernet Shield
3. DHT 22
4. Micro SD card
The DHT22 sensor can measure the temperature and humidity.
We will read the temperature and humidity values from the DHT22 sensor and then we will calculate the heat index using these values.
Then we will send these values to the SD card using the library functions.
First, we will check to see if the SD card has initialized properly or not.
If the SD card has not initialized properly, then we need to create a file in the SD card in which we will send the data.
Then we will write the sensor readings one by one in the SD card file.
Author : Ali Hamza