How to use
Project Seven - Temperature
Next on our Grove journey is the temperature sensor . It is an analog form of input, and as described
earlier returns a voltage potential relative to the ambient temperature. We measure this voltage using
an analog pin, and convert it to a temperature.
Connect the Temperature Sensor to the Analog A0/A1 input jack. The Grove unit produces an analog
voltage on its D1 output, which is connected to Arduino A0 analog input on the A0/A1 input jack.
// Project Seven - temperature
//
int a;
int del=1000; // duration between temperature readings
float temperature;
int B=3975;
float resistance;