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.
Now upload the following Arduino sketch:
// Project Seven - temperature
int del=1000; // duration between temperature readings
You can copy and paste the lines above to add temperature capability to your own sketches.
After you have uploaded the sketch, open the serial monitor window in the Arduino IDE, and you should be presented with a box similar to this:
Tech Support & Product Discussion
Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.