A temperature sensor used in the CanSat is the NTCLE203E3103JBO manufactured by Vishay/BC components. It is a NTC, or Negative Temperature Coefficient thermistor. The thermal conductivity rises with increasing temperature. Most ceramic materials exhibit such behaviour. Other materials however will have an opposite behaviour, with rising temperature the conductivity decreases. Most NTC thermistors are therefore made out of semi conductive materials, something in between an insulator and a conductor, with some special qualities.

Simply put, when the material is heated, the electrons in the material are energized, so even more electrons are able to move around, thus the material can conduct electricity more easily. When a material can conduct electricity more easily its resistance will decrease. Increased temperature will therefore lead to decreased resistance. This inverse relationship is the reason why this sensor is called a Negative Temperature Coefficient (NTC) resistor.

On the sensor board, the temperature sensor is connected in series with a resistor (R1) which has a constant resistance of f.ex. 10 kΩ, as seen in the simplified diagram shown in figure to the right. is either 5V or 3,3V depending on what Arduino board you are using. For the CanSat shield and an Arduino Uno it is 5V. When resistors are connected in series the current in the circuit will be the same everywhere. The total resistance in the circuit can be calculated by:

The current in the circuit is

The same current, , flows through the fixed resistor and through the NTC giving a voltage across the NTC. This can be put into the following equation:

From the above equation, we can find an expression for :

And therefore

and finally

.

To get a complete transfer function you will also need the relation between the temperature and the resistance of the sensor (). You can find this in the sensor datasheet.

Here you can find an example of how to write the code for converting sensor voltage into temperature C using the Steinhart-Hart equation from the sensor datasheet. Note, that this example’s fixed resistor value, the equation constants and the ADC resolution (10 bits or 12 bits) perhaps need to be adjusted to fit your specific case.