Quote:
Originally Posted by jeff5may
i'm no longer a programming expert, but this line looks fishy to me:
steinhart -= 273.15; // convert to C
it seems you should have something like:
variable = variable + constant
rather than
variable = constant
|
The line:
Code:
steinhart -= 273.15;
is the same as:
Code:
steinhart = steinhart - 273.15;
so this in itself is not a problem.
As for the
Quote:
was not declared in this scope
|
, this means that a variable was not defined inside the function using it (inside
main(), for example), nor was it defined globally (before
main()). This is an error in C/C++ programming, not Arduino-specific.
If possible please give the full error message, so that we know which variable was not declared, etc.