Sketch Writing Problem

connordrone:
Yah, that helped, but it is not repeatedly reading the sensor. It only reads it once, and that is when I turn it on. Any help?[quote

About that second bit of code johnwasser pointed out. It should probably be:

  TFTscreen.text(altPrintout, 0, 85);
              // <-- removed both }; and {
  // set the font color
  TFTscreen.stroke(255,255,255);
  // print the sensor value
  TFTscreen.text(tempPrintout, 0, 25);
  TFTscreen.text(humPrintout, 0, 85);
  // wait for a moment
  delay(cycleTime);
  // erase the text you just wrote
  TFTscreen.stroke(0,0,0);
  TFTscreen.text(tempPrintout, 0, 25);
  TFTscreen.text(humPrintout, 0, 85);
}   // end of loop()

It would help you a LOT if you autoformat your code. When you hit a Ctrl T, it will tell you if you have too many or too few parentheses or curly braces. It will also show you how your code is structured, by indenting it.