 
 #include "zg01_fsm.h"
 
-#define PIN_CLOCK   2
-#define PIN_DATA    3
+#define PIN_CLOCK   D1
+#define PIN_DATA    D2
 
-#define MQTT_HOST   "revspace.nl"
+#define MQTT_HOST   "mosquitto.space.revspace.nl"
 #define MQTT_PORT   1883
 
 #define TOPIC_CO2       "revspace/sensors/co2"

        unsigned long ms = millis();
        bool ready = zg01_process(ms, data);
        if (ready) {
            // dump raw buffer
            Serial.print("RAW:");
            hexdump(buffer, sizeof(buffer));
        
            // get item and binary value
            uint8_t item = buffer[0];
            uint16_t value = buffer[1] << 8 | buffer[2];

            switch (item) {
            case 'P':
                // CO2
                mqtt_send(TOPIC_CO2, value, "PPM");
                break;
            case 'A':
                // humidity
