I'm using a NTC sensor (from Carel). The problem is that the temperature that is reading is fluctuating a lot even if, in reality, is stable.
What can I do to solve this problem? I really need to solve it because is related with my job!
Thank you!
Rfija - the constant resistor from the divider
The thermistor is connected to the ground (to avoid, as more as I can, high current through thermistor) into divider of tension.
It works, but it has a strange behavior; if "i" is 32 then the temperature that is reading, is lower than real (4 degrees!!!!); if I choose 4, then it says that I have -32 degrees (or something like that) in my room!!!!!! .
When I boost the value of "i" it shows more and more accurate (referring to the real temp). I really don't understand why the number of readings affect the VALUE of the temperature in such of strange mode!
Could you, please, explain it? I'm doing something wrong?
I have just tried your last idea. Works good! It's true, it does react slower, even more when you have some delays in your sketch (like me). I think that when I'll replace the delays I will use this version (last one).
For the moment I'm ok with the previous code but with a higher value of " i " (about 2500). With this value everything works fine (with a little blink of the value - till counts 2500) but isn't annoying.
Wow! I didn't knew it!!!
Thank you!
Now I'm trying to build a menu and I have no idea how! Thanks to you I have finished to build the code for the temperature.
It's quite complicated to work with this library. I didn't find any explications about the commands of the library. It's difficult to understand the functions just looking to other examples. Don't you think?