Create your bot

LM34 temperature sensor Arduino interface

Step 1: Download ecebots library for LM35 (click here to Download)

Step 2: Add this to your libraries folder ( refer How to add library to Arduino page )

Step 3:Restart your Arduino IDE.

Step 4: Connect your LM35 data pin to Analog pin A0

Step 5: Go to file --> Examples --> ecebotslm35 --> LM35_temperature.


Directly copy below code to your Arduino.

Step 6: Upload the code to your Arduino .

Step7: after successful uploading of code go to  Tools --> Serial monitor . to see the temperature value.

LM35 pins

Connections :-

VCC  to Arduino 5V pin

GND to Arduino GND

OUT to Arduino analog pin A0

/* LM35 temperature sensor
devoloped by */

lm35 mydata(A0);//select analog pin A0,A1,A2,A3,A4,A5,A6
                //connect your LM35 DATA/OUT pin to this analog pin
void setup() {
  // put your setup code here, to run once:
float t;
void loop() {
  // put your main code here, to run repeatedly:
Serial.print(" Temperature = ");

pls like our facebook page to support us. your support matters a lot. Thank you