LED Temperature Sensor

Introduction: LED Temperature Sensor

In this project, you will be learning many different things. You will learn how to activate a TMP, and how to convert its outputs, into Fahrenheit. Then, depending on the temperature, different lights will turn on. At the end, you will have a LED temperature sensor.

Step 1: Activate the TMP

For activating the TMP you could either find a code online or write your own code. I found my code online at adafruit.com. It taught me how to activate the TMP. Then, the outputs were transferred into the serial monioter.

Step 2: Converting Outputs Into Fahrenheit

The equation to transfer the outputs into Fahrenheit is Celcius(9/5) + 32. This converts our outputs from the TMP into Fahrenheit. This makes putting in numbers in the "if" statements much easier.

Step 3: Turning on the LED

You turn on the LEDs in the "if" statements. I made the temperatures according to body temperature. So if your body is too cold, or too hot, the red LED will turn on. If your body has an okay temperature, the yellow LED will turn on. And if your body has a good body temperature, the green LED will turn on.

Step 4: The Code

This is there code that I used for my project. The first picture shows the code that introduces the LEDs, activates the serial monster, and also activates the TMP. The second picture shows the "if" statements. These tell the LEDs when to turn on.

Step 5: The End Project

In the end, you will have a machine that tells you the temperature, and LEDs that tell you if the temperature is good or bad. Further projects that you can do are a wireless thermometer and a machine that tells you when food is ready by its temperature.



    • Creative Misuse Contest

      Creative Misuse Contest
    • Fix It! Contest

      Fix It! Contest
    • Metalworking Contest

      Metalworking Contest


    Awesome, I can see many uses for this project