Hello, I am quite a noob with arduino as ive only had it for a month. I built a tempature teller to say, it would take the tempature a put it on a lcd display. All was fine and well, I got bored with it and took it apart. Now here I am I built it again with the same design and its showing way high readings, as it wasnt before. Could someone explain or help me.
Are saying that this code worked before you took the hardware to pieces and the exact same code is now giving incorrect readings with the reassembled hardware?
Where do you suppose the problem is?
Is it any use posting working code and expecting advice about how to fix it?
Robin2:
Are saying that this code worked before you took the hardware to pieces and the exact same code is now giving incorrect readings with the reassembled hardware?
Where do you suppose the problem is?
Is it any use posting working code and expecting advice about how to fix it?
...R
Sorry my mistake I posted it just in case someone needed to know...
If you don't know what kind of sensor it is, how did you arrive at the formula for converting the reading to temp? (The formula looks same as for an LM35, but that's C not F.)
I had rather hoped that my earlier post would prompt you to post information about the part of your project that has problems - a diagram of how everything is wired.
It is good that you posted the code, so we can see that is not the problem. Further more it makes clear you use an analog sensor.
Because you use Fahrenheit it might be the LM34
Does the sensor becomes hot?
*@JimboZA, the LM35 and LM34 both have similar formula 10mVolt/degree * but as the LM34 does Fahrenheit it is almost twice (1.8) as sensitive as the LM35 which does Celsius!