uhrbahn:
Can you please give ma a hint on how to print the averaged sensor value to my display instead of printing
to the serial monitor?
Proably something like that:
...
Serial.print("Temperature ");
Serial.print(steinhart);
Serial.println(" *C");
char valueText[8]; //enough space for "-XXX.XX" + 1 for the null terminator
dtostrf( steinhart, 1, 2, valueText ); // convert float to char array (with 2 digits precision)
TFTscreen.text( valueText, 0, 20 );
...
Untested, but should work...
And just because the word "dtostrf" doesn't appear colored in the IDE doesn't mean it's not recognized. If it compiles without errors, it is recognized