problem with the code of adxl335

Hello, im doing a school project right now, and im using an acelerometer, the adxl335 and a 6v engine.
I need that when the z axis reads values above 1.5 g's the engine starts, but im having problems with that. If somebody could help me correcting\making the right code i would be very very thankfull.
ps: i´m new to arduino.
Thank you.

adxl335_mede_gss.ino (446 Bytes)

but im having problems with that

And the problems are. . ?

Just post the code - don't make people download it.

OH, sorry. the problem that im facing is that when the aceleration is above 1.5 g's, the engine doesn't start.
Thank you

int motorPin = 9;
float x, y, z;

void setup()
{
Serial.begin(9600);
}

void loop()
{
x = analogRead(0) / 330.000;
y = analogRead(1) / 330.000;
z = analogRead(2) / 330.000;
if (z>1.5) digitalWrite(13, HIGH);
Serial.println("--MEASURING ACCELERATION... AXIS X, Y, Z--");
Serial.println(x);
Serial.println(y);
Serial.println(z);

if (z>1.5) digitalWrite(9, HIGH);
delay(1200);
}

Missing pinMode, pin 9?

where do i put that function?

that was the missing part! Thank you for your help!