1
I have a problem with my temperature measurement function.
#include "max6675.h"
int ktcSO = 8;
int ktcCS = 9;
int ktcCLK = 10;
MAX6675 ktc(ktcCLK, ktcCS, ktcSO);
void setup()
{
Serial.begin(9600);
delay(500);
}
void loop()
{
Serial.print("Temperatura = ");
Serial.println((1,11679312453725*ktc.readCelsius())+(-0,00531623949317312*ktc.readCelsius()*ktc.readCelsius())+(0,0000975327598421513*ktc.readCelsius()*ktc.readCelsius()*ktc.readCelsius())+(-0,000000653954749797908*ktc.readCelsius()*ktc.readCelsius()*ktc.readCelsius()*ktc.readCelsius())-1,63915244051268);
delay(1000);
}
It returns me the error: invalid digit "9" in octal constant
what part of my Serial.println
. How do I resolve?
Perfect. Thank you!
– Daniel Bonifácio