 // Create instances
 TFT TFTscreen = TFT(cs, dc, rst);
 dht DHT;
+
 
 // Define Global Variables
 char PreviousTemperature[4];

*/

// Setup the includes
#include <SPI.h>
#include <TFT.h>  // Arduino LCD library
#include <dht.h> // DHT11 Library
#include <DS1307RTC.h> // RTC Library
//#include <IRremote.h> // IR Library


      //Serial.println("Temp OK");
      double sensorVal = double(DHT.temperature);
      dtostrf(sensorVal, 2, 0, CurrentTemperature);
      if (memcmp(CurrentTemperature, PreviousTemperature, 4) != 0)
      {
        UpdateTemperature();
        // Do we need to turn the heating on?
        if (sensorVal < ReqTemp - 1)  {
          HeatingOn = true;
        }
        if (sensorVal > ReqTemp + 1) {
          HeatingOn = false;
        }
        DrawFire(HeatingOn);
      }
      sensorVal = double(DHT.humidity);
      dtostrf(sensorVal, 2, 0, CurrentHumidity);
  }
}

void ReadTime()
{
  String TimeToDisplay = "";
  if (PreviousHour != hour())
  {
    TimeToDisplay = "";
    TFTscreen.setTextSize(2);
    TFTscreen.stroke(Black);
    TimeToDisplay += Time2Digit(PreviousHour);
    TFTscreen.text(TimeToDisplay.c_str(), TimeStartPointX, TimeStartPointY);

    TimeToDisplay = "";
    TimeToDisplay += Time2Digit(hour());
    TFTscreen.stroke(White);
    TFTscreen.text(TimeToDisplay.c_str(), TimeStartPointX, TimeStartPointY);

    PreviousHour = hour();
  }
  if (PreviousMinute != minute())
  {
    TimeToDisplay = "";
    TFTscreen.setTextSize(2);
    TFTscreen.stroke(Black);
    TimeToDisplay += Time2Digit(PreviousMinute);
    TFTscreen.text(TimeToDisplay.c_str(), TimeStartPointX + 35, TimeStartPointY);

    TimeToDisplay = "";
    TimeToDisplay += Time2Digit(minute());
    TFTscreen.stroke(White);
    TFTscreen.text(TimeToDisplay.c_str(), TimeStartPointX + 35, TimeStartPointY);

    PreviousMinute = minute();

  }
  TimeToDisplay += Time2Digit(hour());
  TimeToDisplay += ":";
  TimeToDisplay += Time2Digit(minute());
  TimeToDisplay += ":";
  TimeToDisplay += Time2Digit(second());
  Serial.println("Time is " + TimeToDisplay);

  // Display the time on the screen.

}

void DrawFire(bool Flame)
{
  //Do we need flame?
  if (Flame)
  {
    TFTscreen.drawBitmap(TFTscreen.width() - 45, 36, CampFireFlames, 40, 44, Red);
  }
  else
  {
    TFTscreen.drawBitmap(TFTscreen.width() - 45, 36, CampFireFlames, 40, 44, Black);
  }

  TFTscreen.drawBitmap(TFTscreen.width() - 45, 80, CampFireLogs, 40, 12, Brown);
}

String Time2Digit(int Number)
{
  String StringToReturn = "";
  if (Number >= 0 && Number < 10) {
    StringToReturn += "0";
  }
  StringToReturn += Number;
  return StringToReturn;
}

void UpdateTemperature()
{
  Serial.println("Temp Diff");
