Help with TFT Display

Hi all,

I am currently having problems getting my Sainsmart ST7735 to display the readings I’m getting from an MQ2 gas detector. I have a green LED and a red LED to give a basic indication based on the sensor input, which are working fine. I can also print the results to the serial monitor without a problem. But I’m struggling to work out how I can print the readings to my TFT display. Forgive me if this is a basic mistake, but I’m new to this. Here is the sketch I have so far - can anyone advise me as to how to proceed? I’d like to output the sensor results to the TFT instead of the serial monitor. Thanks very much.

const int analogInPin = A0; // Analog input pin that the sensor potentiometer is attached to
const int ledPin1 = 49; // Red LED connected to digital pin 49, ref to ledPin1 as 13 for below
const int ledPin2 = 48; // Green LED connected to digital pin 48, ref to ledPin2 as 13 for below
int sensorValue = 0; // value read from the sensor

#define cs 53
#define dc 9
#define reset 8
#define scl 13
#define sda 11

myScreen TFT(cs, dc, reset, scl, sda);

#include <TFT.h>
#include <SPI.h>

void setup() {

Serial.begin(9600); // initialize serial communications at 9600 bps
pinMode(ledPin1, OUTPUT); // sets the digital 49 pin as an output
pinMode(ledPin2, OUTPUT); // sets the digital 48 pin as an output
}

void loop() {

sensorValue = analogRead(analogInPin); // read the analog in value
if (sensorValue >= 750) // determine alarm status
{
digitalWrite(ledPin1, HIGH); // sets the red LED on
digitalWrite(ledPin2, LOW); // sets the green LED off
}
else
{
digitalWrite(ledPin1, LOW); // sets the red LED off
digitalWrite(ledPin2, HIGH); // sets the green LED on
}

Serial.print("sensor = " ); // print the results to the serial monitor:
Serial.println(sensorValue);

delay(1000); // wait 1 second before the next loop for the analog-to-digital converter to settle after the last reading

You don't appear to do anything with the TFT display - have you got an example
sketch working? If not, do that first. The sensible approach is to get each part
working separately, only then combine them.

Check out http://arduino.cc/en/Tutorial/TFTDisplayText

Also... which arduino are you using