What is the exact thermistor used in example?

@mikolaj,

It appears that the thermistor used in the example is derived from this article:

http://www.eidusa.com/Electronics_Kits_TEMP_THERMISTOR_1.htm

For you to use it, you need to modify the CayeneTemperature.h file with your Steinhart-Hart constants in the getKelvin() function in the Cayenne library directory.

Using this calculator, and your data, you can get the factors you need:

	float getKelvin() {
		int reading = analogRead(_pin);
		if (reading != 0) {
			long resistance = _resistance * ((1024.0 / reading) - 1);
			float temp = log(resistance);
			return 1 / (0.001132274644 + (0.0002333714590 * temp) + (0.00000009255824523 * temp * temp * temp));
		}
		return 0;
	}

Cheers,

Craig

2 Likes