controlling PIR data *newbie

int buttonState = 0;
int lastButtonState = 0;

To hold the state of the PIR button, huh?