Your first real-world Arduino project — measure temperature using a tiny sensor and a few lines of code. It’s easier than you think.
🧠 What You’re Building
In this beginner-friendly project, you’ll build a working digital thermometer using an LM35 temperature sensor and an Arduino Uno. It reads the temperature around it and displays it live on your screen.
This is a perfect first-timer project: ✅ Easy wiring
✅ No soldering
✅ Only a few lines of code
✅ Fun and educational
🧰 What You’ll Need
Here’s a simple parts list. These affiliate links help support the blog (thanks if you use them!): 🌡️ LM35 Temperature Sensor
💡 Want to future-proof your setup? Look for kits that include LEDs, buzzers, and extra sensors — they’ll help with your next projects too.
🔌 Wiring the LM35
Here’s how to connect your LM35 sensor to the Arduino:
LM35 Pin | Connects To |
---|---|
Pin 1 (VCC) | 5V on Arduino |
Pin 2 (Signal) | A0 on Arduino |
Pin 3 (GND) | GND on Arduino |
🖼️ Insert Image: Wiring Diagram
(Add your LM35-to-Arduino diagram here)
💻 Upload the Code
Open your Arduino IDE, create a new sketch, and paste this in:
cppCopyEditint sensorPin = A0;
float temperature;
void setup() {
Serial.begin(9600); // Start serial monitor
}
void loop() {
int sensorValue = analogRead(sensorPin);
temperature = (sensorValue * 5.0 * 100.0) / 1024.0;
Serial.print("🌡️ Temp: ");
Serial.print(temperature);
Serial.println(" °C");
delay(1000);
}
🛠️ This reads the sensor every second and prints the temperature in Celsius.
🧪 What You’ll See
After uploading:
- Click the Serial Monitor (top-right magnifying glass in the Arduino IDE)
- Set baud rate to 9600
- You’ll see output like:
yamlCopyEdit🌡️ Temp: 24.50 °C
🌡️ Temp: 24.52 °C
Touch the sensor with your finger or breathe on it — you’ll see the numbers change in real-time. Congrats! You just built a working temperature sensor.
🚀 Upgrade This Project
Once you’re comfortable, try adding:
🧰 What You’ll Need
Here’s a simple parts list. These affiliate links help support the blog (thanks if you use them!): 🌡️ LM35 Temperature Sensor
- 🧱 An LCD screen to display temperature without the computer
- 🚨 A buzzer to alert when it gets too hot
- 📈 A data logger to track room temperature over time
- 🌱 A plant environment monitor with light & moisture sensors
📥 Grab the Printable PDF + Bonus Cheat Sheet!
Want a downloadable version of this project, including the code, wiring diagram, and quick-start checklist? I’ve got you covered.
👉 Get the 1-Page Quick reference flashcard
💌 Stay Curious — Get Future Arduino Projects in Your Inbox
Want more beginner-friendly projects like this one — plus tutorials on AI, robotics, space tech, and more?
Join the AIDailyShift newsletter and get early access to:
- 🛠️ New Arduino tutorials
- 📦 Gear recommendations & deals
- 🧠 Tech tips you can actually use
👉 Subscribe Now — It’s free, and I only send cool stuff.
As an Amazon Associate, I earn from qualifying purchases.