     Spark.variable("currentHumid", &currentHumid, DOUBLE);
 }
 
-void loop() {
+void loop(void) {
     checkStateChange();
 
     if (isReporting) {

#define LED_PIN            D7

#define SENSOR_CHECK_MS    2000
#define SENSOR_REPORT_MS   30000

double currentTempF = 0.0;
double currentHumid = 0.0;


DHT dht(DHT_PIN, DHT_TYPE);

static void readEEPROM(void) {
    unsigned int i;
    for (i = 0; i < sizeof(settingsEEPROM); ++i) {
        EEPROM_Data.raw[i] = EEPROM.read(i);
    }
    SERIAL.print(i);
    SERIAL.println(" bytes read from EEPROM");
}

static void writeEEPROM(void) {
    unsigned int i;
    for (i = 0; i < sizeof(settingsEEPROM); ++i) {
        EEPROM.write(i, EEPROM_Data.raw[i]);
    }
    SERIAL.print(i);
    SERIAL.println(" bytes wrote to EEPROM");
}

static void buttonPress(void) {
    buttonPressMillis = millis();
    buttonReleaseMillis = 0;
}

static void checkStateChange(void) {
    if (buttonPressMillis > 0) {
        if (digitalRead(BUTTON_PIN) == HIGH) {
            // False button press, ignore.
