Temperature Sensor
Materials for this activity:
Let's start by measuring your temperature.
Temperature is one of the simplest and main resources for healthcare professionals to know if something is wrong with you. This activity will help you learn basic Arduino wiring, how to read data from a sensor, and how to get information to display on your computer monitor.
Downloading Libraries
Go ahead and open up your Arduino IDE program.
Before we can use the code for the temperature sensor, you have to first download two libraries. Libraries are a collection of code that make it easier to connect to sensors.
To download libraries: open your Arduino IDE software, open the "tools" tab, and select "manage libraries" (wait about 5 seconds). This will open up the library finder tool.
Here is a picture showing those steps.
Before we can use the code for the temperature sensor, you have to first download two libraries. Libraries are a collection of code that make it easier to connect to sensors.
To download libraries: open your Arduino IDE software, open the "tools" tab, and select "manage libraries" (wait about 5 seconds). This will open up the library finder tool.
Here is a picture showing those steps.
The two libraries we need are "OneWire" and "DallasTemperature". To find the first one, type "OneWire" in the search bar on the top right and push enter on your keyboard. Scroll down until you find "OneWire". Move your computer mouse over that row and then select the "Install" button that appears in the bottom right (wait about 5 seconds for it to install).
Do the same thing to install "DallasTemperature."
You are now ready to wire up and write the code for the temperature sensor!