I started by trying each components separately and everything works fine.
Problem:
Inaccurate result when I combine the XBee and LM35 sensor.
The sensor keep giving the same result. Here's the sketch output.
Code: Select all
LM35 Thermometer
Analog in reading: 1023 - Calculated Temp: 109.8
Analog in reading: 1023 - Calculated Temp: 109.8
Analog in reading: 1023 - Calculated Temp: 109.8
Analog in reading: 1023 - Calculated Temp: 109.8
I am very sure that before combining it with XBee everything works just fine.
Can anyone explain to me what's the problem here?
Do it need any voltage adjustment or something?