Surilli
Published © LGPL

Temperature Sensor LM35 Using Surilli Basic M0

This sensor is used to record temperature values of a particular environment and other HVAC applications.

BeginnerFull instructions provided30 minutes562
Temperature Sensor LM35 Using Surilli Basic M0

Things used in this project

Hardware components

Temperature Sensor
Temperature Sensor
×1
Surilli Basic
Surilli Basic
×1
Jumper wires (generic)
Jumper wires (generic)
×3
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Temperature Sensor LM35 using Surilli Basic M0

Code

Temperature_Sensor_LM35

C/C++
int val;
int tempPin = 5;

void setup()
{
SerialUSB.begin(9600);
}
void loop()
{
val = analogRead(tempPin);
float mv = ( val/1024.0)*5000; 
float cel = mv/10;
float farh = (cel*9)/5 + 32;

SerialUSB.print("TEMPERATURE = ");
SerialUSB.print(cel);
SerialUSB.print("*C");
SerialUSB.println();
delay(1000);

SerialUSB.print("TEMPERATURE = ");
SerialUSB.print(farh);
SerialUSB.print("*F");
SerialUSB.println();
}

Credits

Surilli

Surilli

196 projects • 62 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments