Lilypad - Temperature Sensor


temperature.jpg
Lilypad Temperature Sensor

Description:

Senses the Temperature. Returns a value of between 0 and 1023. A higher number indicates warmer and a lower number indicates cooler.

Connecting:

1. Connect the positive petal on the Temperature Sensor to the positive petal on the Lilypad Main Board.
2. Connect the negative petal on the Temperature Sensor to the negative petal on the Lilypad Main Board.
3. Connect the "S" petal on the Temperature Sensor to one of the analog input petals on the Lilypad Main Board e.g. "a0".

NB: If you are using alligator leads to prototype then make sure that the teeth of your clips make good contact with the metal parts of the sensor petals. If not, you will get inconsistent results.

Getting Data From:

Getting data from any analog input involves writing a sketch to read that input using the anlogRead() function. A good basic example of this is the Arduino example AnalogInSerial sketch (File > Examples > Analog > AnalogInSerial). This sketch will read any analog input and output the result to the serial monitor. This is a good way to check the range of values that your sensor is giving.

Links: