 }
 
 void setup() {
+
+  Serial.begin(115200);
+
   EEPROM.begin(sizeof(EEpromData));
   EEPROM.get(0,EEpromData);
   pinMode(PIN_RELAY, OUTPUT);

#include <EEPROM.h>

#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.6"

// Disable this if you don't want the relay to turn on with any single tap event
#define IMMEDIATEON

/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75";

  if ( function > 0 ) {
    Serial.println("One-shot");
    if ( function == 1 ) {
      // If not connected, toggle the relay like a normal switch.
      // Calls to relayNode don't work whilst offline.
      if ( !Homie.isConnected() ) {
        Serial.println("Offline toggle of relay");
        digitalWrite(PIN_RELAY, !digitalRead(PIN_RELAY));
      }
      if ( Homie.isConnected() ) {
        relayNode.setProperty("relayState").send("ON");
        buttonNode.setProperty("event").setRetained(false).send("SINGLE");
      }
      Serial.println("SINGLE click");
    }

    if ( function == 2 ) {
