Project tutorial
Temperature sensor

Temperature sensor © GPL3+

Arduino learned how to tell the temperature

  • 18,658 views
  • 6 comments
  • 33 respects

Components and supplies

Apps and online services

About this project

This project senses the temperature around it, then converts that to volts, volts to 

celsius, celsius to fahrenheit, then prints fahrenheit.



Code

tempArduino
#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

const int tmp = A0;
const int p = 8;

void setup() {
  lcd.begin(16, 2);
  Serial.begin(9600);
  pinMode(p, OUTPUT);
  // put your setup code here, to run once:

}

void loop() {
  digitalWrite(p,LOW);
  int Temp = analogRead(tmp);
  float volts = (Temp / 965.0) * 5;
  float c = (volts - .5) * 100;
  float f = (c * 9 / 5 + 32);
  Serial.println(f);
  lcd.setCursor(5, 0);
  lcd.print(f);
  delay(3000);
  // put your main code here, to run repeatedly:

}

Schematics

temp set up
temp.fzz
temp wiring
Temp bb
temp schematic
Temp schem

Comments

Similar projects you might like

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 9,056 views
  • 1 comment
  • 17 respects

Temperature + Humidity on LCD

Project showcase by interpeo

  • 19,650 views
  • 11 comments
  • 49 respects

Room temperature sensor with display on Mobile

Project showcase by Kaustubh Agarwal

  • 23,983 views
  • 8 comments
  • 54 respects

Beautifully Finished Humidity and Temperature Sensor

Project tutorial by Wicked Makers

  • 16,862 views
  • 21 comments
  • 135 respects

Arduino Temperature - Humidity - Rain Sensor

Project showcase by Rick_Findus

  • 7,412 views
  • 6 comments
  • 13 respects

Ultrasonic Sensor with Alarm, LCD and Temperature

Project tutorial by MichDragstar

  • 4,661 views
  • 7 comments
  • 19 respects
Add projectSign up / Login