Project tutorial
Temperature sensor

Temperature sensor © GPL3+

Arduino learned how to tell the temperature

  • 46,813 views
  • 10 comments
  • 53 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

  • 28,431 views
  • 6 comments
  • 44 respects

Temperature + Humidity on LCD

Project showcase by interpeo

  • 27,011 views
  • 15 comments
  • 60 respects

Beautifully Finished Humidity and Temperature Sensor

Project tutorial by Wicked Makers

  • 20,940 views
  • 22 comments
  • 150 respects

Temperature and Humidity Sensor

by Amarantowy

  • 15,699 views
  • 6 comments
  • 25 respects

Arduino Temperature - Humidity - Rain Sensor

Project showcase by Rick_Findus

  • 15,348 views
  • 6 comments
  • 19 respects

Ultrasonic Sensor with Alarm, LCD and Temperature

Project tutorial by MichDragstar

  • 12,140 views
  • 7 comments
  • 26 respects
Add projectSign up / Login