from previous post for C language …
The analog reading from the VM140 is 10 bits.
As you noticed, you have to use the formula:
degrees = ((101 * TempValue /1024) - 23)
now i got -19 °C it cant be right, what did i do wrong ?
this is what i did, i runned my VB.net program for reading temp. And the temperature sensor also. I waited 15 minutes and checked what i got on the screen
-19 °C
minus ?? and turning that trimmer stays into minus …
my vb code with the 2008VB example from this forum i’ve used
then i added this line
ReadAllAnalog(CardAddress, Buffer(0))
ProgressBar1.Value = Buffer(0)
Label2.Text = CStr(Buffer(0))
Label22.Text = CStr((101 * (Buffer(0) / 1024)) - 23)
i connected that temperature sensor with 2 X 1K resistors
15Vdc power supply for the temperature
(after 15 minutes i read out my temperature in the room and measurements)
my temperature room = 25.6°C (really no joke)
my measurements are 4,85 V after adjusting T
now it working fine, guess there was a conflict with saving the code