Arduino Temperature Sensor




Introduction: Arduino Temperature Sensor

I am an eleven year old kid. I just started Arduino a few years ago. Arduino used to be really tough so my goal is to help beginners like I was.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: This Will Be Your Inventory

You will need:

5 jumper wires

1 LM35 temperature sensor

1 Arduino Uno

1 breadboard

Step 2: This Is the LM35 Temperature Sensor.

This looks a lot like a transistor. I've posted an image of a closeup so that you don't get confused.

Step 3: Wire the Temperature Sensor Like This

Notice that the red wire is going to 5v, the black wire to ground, and the blue to analog read pin 0.

Step 4: Here Is the Code

This is the code:

void setup() {
Serial.begin(9600); // set up the connection between the arduino board and the computer.


void loop() {

float x; // we are telling it that there is a random decimal number which we will call x.(this being the value that the temperature sensor has read.)

x = analogRead(0); //read this number through the analog input pin that we plugged the middle leg of the sensor into.

Serial.print(x); // display this number on the serial monitor


Arduino All The Things! Contest

Participated in the
Arduino All The Things! Contest

Be the First to Share


    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest