 float getHumidity() {
   return dht.readHumidity();
 }
-

#define PASS ""        // your network password            //
//---------------------------------------------------------//

#define DHTTYPE DHT22   // DHT 22  (AM2302), AM2320, AM2321
const int DHTPin = 4;
DHT dht(DHTPin, DHTTYPE);
bool fahrenheit = true;

unsigned long lastTempHumidSend = millis();
#define TEMP_HUMID_UPDATE_FREQUENCY 60000

// Initial set up routines
void setup() {
  Serial.begin(115200);
  Serial.println();
  dht.begin();
  connectWifi();        //Connect to wifi
  MQTT_Helper.setup();

// Main program loop
void loop() {
  MQTT_Helper.mqttLoop();
  checkTempHumid();
  yield();
  checkSerial();
  delay(50); //saves considerable power
}

// Initial connection to WiFi
// We wait for 5 seconds to connect, but do not block on the connection.
void connectWifi() {
  WiFi.begin(SSID, PASS);
  delay(5000);
}

// Send temp / humidity update if need be
void checkTempHumid() {
  if (millis() > lastTempHumidSend + TEMP_HUMID_UPDATE_FREQUENCY) {
    
