Xbee

int pushbutton = 2;

void setup() 
{
Serial.begin(9600); 
pinMode(2, INPUT);

Give the pin a name, but don't use the name. Why not?

  digitalRead(pushbutton);

Why? The digitalRead function returns a value and has no side effects. If you don't want the value, why make the call.