❏ After the first temperature reading, gently squeeze the
sensor between your thumb and forefinger. Hold the
sensor for several readings, then release it. Verify that
you get a temperature rise and fall output similar to that
shown in Figure 14.
Next month, we will combine a lot of what we have
learned so far to create a data logger. NV
■ FIGURE 14:
Temperature
sensing output.
■ FIGURE 13:
Temperature sensor schematic.
float tempSensorADC = 0.0;
// variable to for the ADC reading
float tempertureSensorVoltage = 0.0;
// variable for the converted voltage
float tempSensorVoltage = 0.0;
// variable for the sensor voltage
float tempCelsius = 0.0;
// variable for degrees Celsius
void setup()
{
Serial.begin(57600);
Serial.println(“Sensing Temperature. rev
1.0”);
}
❏ Compile and run the program.