#include <ISD1700.h>
First step is to provide a link.
A link to the device would be useful, too. It appears that the Arduino and it communicate using the serial port. In that sketch, I can't see how the tilt (or any other kind of) switch comes into play.