first, it showed 22 c which makes sense but then I warmed the sensor and the temperature dropped on the serial monitor.
Does somebody know why it is flipped?
dindibo4:
...and if I did wouldn't it burn the sensor?
There are only two resistors on that board (non-polarised parts).
A fixed one (10k) and a variable one (10k thermistor).
They make a voltage divider, with the tap connected to the analogue input.
Maybe the thermistor is connected to ground and the resistor to +5volt.
The code seems to expect the resistor to ground.
Try swapping the +5volt and ground wires.
Leo..
Wawa:
There are only two resistors on that board (non-polarised parts).
A fixed one (10k) and a variable one (10k thermistor).
They make a voltage divider, with the tap connected to the analogue input.
Maybe the thermistor is connected to ground and the resistor to +5volt.
The code seems to expect the resistor to ground.
Try swapping the +5volt and ground wires.
Leo..
Hey Leo, Thank you for your advise I did as you said and the problem has been solved!
it works great.
Thanks for the help