Random Nerd Tutorials

Arduino – Datalogger with Temperature Sensor and Photoresistor


In this project I’m going to create a simple Datalogger with my Arduino and an Ethernet shield.

With this concept you can change my code and monitor any sensor you desire.

I’ll be using a photoresistor and a temperature sensor and all the information will be stored in a micro SD card.

Watch the video below for a complete tutorial

Note: I apologize for my voice. I’m a bit sick so my voice sounded a bit different than usual.

Parts Required


You can use the preceding links or go directly to MakerAdvisor.com/tools to find all the parts for your projects at the best price!



Upload the code below

I hope this tutorial can help you with your projects!

Support my work by sharing this video with a friend that also likes electronics.

News: I’m currently working on a project that I’m really excited about. I won’t tell exactly what It is. But I’ll share with you in a few weeks as soon as It’s finished. So stay tuned for more.

Thanks for reading, you can contact me by leaving a comment. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my Facebook Page.


Learn ESP32 with Arduino IDE

This is our complete guide to program the ESP32 with Arduino IDE, including projects, tips, and tricks! The registrations are open, so SIGN UP NOW »

Recommended Resources

Home Automation using ESP8266 »
Build IoT projects and home automation gadgets with the ESP8266 Wi-Fi module.

Build a Home Automation System »
Learn how to build a automation system using open-source hardware and software from scratch.

Arduino Step-by-Step Projects »
Build 25 cool Arduino projects with our course even with no prior experience!

Leave a Comment:

Add Your Reply

Enroll in our Electronics and Programming Courses:

ESP32, ESP8266, Arduino and much more.