---
# System prepended metadata

title: Quick and simple Arduino project

---


# Quick and simple Arduino project
**Making a homemade thermometer with the use of the Arduino uno.**

This will be a quick and simple tutorial for this equally quick project,
unfortunatly nothing fancy available for the visuals cause we will be making use of the serial monitor in your arduino.

# **the equipment needed for this project**

![](https://i.imgur.com/iM2pdIm.png)

**For this project to succeed you will need an arduino uno a minimum of 3 wires,
and last but not least one temprature sensor.**

![](https://i.imgur.com/zZ6XoOu.png)
ideally it should look like the image above but should work eitherway hopefully..

here´s the schematic look of the finished produkt. ![](https://i.imgur.com/lQ12261.png)

The project is fairly self explanatory with the help of the schematic but something to keep in mind is to have the wires on the correct spot,GRND being the negative wire which is to the right of the Volt wire which is always in the center.Lastly the analog 0 connection which is the opposite location of the GRND wire.


# Finally the code![](https://i.imgur.com/xkxvAWO.jpg)

```c=const int temperaturePin = 0;


void setup()
{
 
  Serial.begin(9600);
}


void loop()
{

  float voltage, degreesC, degreesF;


  voltage = getVoltage(temperaturePin);
  

  degreesC = (voltage - 0.5) * 100.0;
  
 
  
  degreesF = degreesC * (9.0/5.0) + 32.0;//Conversion to Celcius
 

  Serial.print("voltage: ");
  Serial.print(voltage);
  Serial.print("  deg C: ");
  Serial.print(degreesC);
  Serial.print("  deg F: ");
  Serial.println(degreesF);

  delay(1000); 
}


float getVoltage(int pin)
{
 
  return (analogRead(pin) * 0.004882814);//5(volt)/1024
 
}
```
Hope you found my tutorial useful and possibly learned something new.