#if defined(ESP8266)
Serial.println(F("Version compiled for ESP8266. Now monitoring changes on ESP8266 GPIO2"));
intpin=2;
#else
Serial.println();
Serial.println(F("Now monitoring changes on Arduino INT0/D2"));
intpin=0;
#endif
(Sorry if it's a total non-sense, I don't have my arduino IDE installed here)