          String node_str;
          if (payload.door){
            digitalWrite(ledPin, HIGH);
-           node_str = String("NODE #")+payload.node+String("     SOFT ALARM!");
+           node_str = String("NODE #")+payload.node+String("     REED ALARM!");
+         }
+         else if (payload.pir){
+           digitalWrite(ledPin, HIGH);
+           node_str = String("NODE #")+payload.node+String("     PIR ALARM!");
          }
          else{
            digitalWrite(ledPin, LOW);

  unsigned humi;
  unsigned light;
  unsigned door;
  unsigned long hkey;
};


                       + "[humi: "  + String((float)payload.humi,2) + "%] "
                       + "[light: " + String((float)payload.light,2) + "%] "
                       + "[door: "  + String(payload.door) + "] "
                       + "[pir: "  + String(payload.pir) + "] "
                       + "[hkey: "  + String(payload.hkey) + "] ";
      Serial.println(dataPrint);

