Hi everybody. I'm new there and I'm a 14-years-old italian, so if I wont understand anything... you'll know why!
I need some help with a dynamic resistor-temperature sensor, doing it easy, I need to know the output in volts and Ampere, only knowing ohms and input. Is there any operation to do it?
For example, if I want to do a thermometer, with a led which turns on when the room reach a specific temperature, what should I write there?
if (???>temperatura<???)
What have the question marks to turn in?
volts, millivolts, ampere?
if (analogRead(A0)) >= someNumber){ Â // read the voltage of sensor
// do something
}
else{
// do something elso
}
The result of analogRead will be a number from 0 to 1023.
0 might represent 0C, 200 might represent 50C, 400 might represent 100C, and so on.
You will have to understand how your sensor works and what the numbers represent.
Maybe you will have to do some math to show the results as the temperature you expect.