Nice app to start with, did you connect directly to the motor or did you use some sensor - so it would work with any vibrating phone?
General remarks:
- please use the # button above the smiley's to tag your code , also doing a CTRL-T in the IDE does a reindent => looks better
more important, you should do the voltage math in float while now it is done in integer
See code below, I applied some other thingies too
- header
- consts where appropriate
- removed one delay to make system more reactive (other is homework

- and the float math where appropriate
(code not tested)
//
// FILE: PhoneBuzzDetector.pde
// AUTHOR: Sam Glasius
// DATE: 2012-12-27
//
// PUPROSE:
//
const int phonepin = A0; // made const as they will not change #define also a good option
const int relaypin = 13; // idem
float voltage = 0; // could be local within loop, minimize scope
float threshold = 1.5;
unsigned long lastOutput = 0;
#define DISPLAY_THRESHOLD 500UL // 2x per second
void setup()
{
pinMode(phonepin, INPUT);
pinMode(relaypin, OUTPUT);
digitalWrite(relaypin, LOW);
Serial.begin(9600);
Serial.println("PhoneBuzzDetector 0.1"); // to recall what is loaded on the Arduino
}
void loop()
{
voltage = analogRead(phonepin) * 5.0 / 1023;
//without delay
unsigned long now = millis();
if (now - lastOutput >= DISPLAY_THRESHOLD)
{
lastOutput += DISPLAY_THRESHOLD;
Serial.print(now);
Serial.print("\t");
Serial.print(voltage, 3); // use 3 digits
Serial.println();
}
// the delays can be removed here similar to above in the display part
// by holding the state of the relay, previous state and a time stamp
if (voltage > threshold)
{
digitalWrite(relaypin, HIGH);
delay(30000);
digitalWrite(relaypin, LOW);
delay(500);
}
}