If you re using a 5v arduino and connecting the sensor directly into an analog pin you can use these formulas to turn the 10 bit analog reading into a temperature.
Adafruit temp sensor tutorial.
Using a tmp36 temperature sensor with beaglebone black by simon monk.
Since the raspberry pi has no adc analog to digital converter it cannot directly use an analog temperature sensor like the tmp36 making the ds18b20 a good choice for temperature sensing.
They work great with any microcontroller using standard i2c.
Temp in c vout in mv 500 10.
Tutorials and series to get you on your way.
A thermistor is a thermal resistor a resistor that changes its resistance with temperature.
Measuring temperature with a beaglebone black.
The pct2075 by nxp is a pin compatible drop in replacement for a very common i2c temperature sensor the lm75.
Technically all resistors are thermistors their resistance changes slightly with temperature but the change is usually very very small and difficult to measure.
To convert the voltage to temperature simply use the basic formula.
Voltage at pin in millivolts reading from adc 5000 1024 this formula converts the number 0 1023 from the adc into 0 5000mv 5v.
If you re using a lm35 or similar use line a in the image above and the formula.
Its very similar to the lm35 tmp35 celsius output and lm34 tmp34 farenheit output.
Additionally because the pct2075 allows the address pins to work in three states high low floating you can have 27 pct2075s on the same bus as.
This i2c digital temperature sensor is one of the more accurate precise we ve ever seen with a typical accuracy of 0 25 c over the sensor s 40 c to 125 c range and precision of 0 0625 c.
Temp in c vout in mv 10.
Send real time analog sensor data to adafruit io.
The voltage out is 0v at 50 c and 1 75v at 125 c.
Reading temperatures to 0 1 degree precision.
In this lesson you will learn how to use a ds18b20 with the raspberry pi to take temperature readings.
Wide range low power temperature sensor outputs an analog voltage that is proportional to the ambient temperature.
So for example if the voltage out is 1v that means that the temperature is 1000 mv 500 10 50 c.
Thermistors are made so that the resistance changes drastically with temperature so that it can be 100 ohms or more of change per degree.