   mystr += "},{'sensor':'lightSwitch', 'type': 'lightswitch', 'value':";
   mystr += powerIsOn;
   
-  
   mystr += "}]}]";
   Serial.println(mystr);
 }

    incomingByte = Serial.read();
    //light schduling 
    //turn lights off
    if(incomingByte == 48){     //being sent 1
       digitalWrite(RELAY1,0);
       powerIsOn = false;

       powerIsOn = true;
    }
  }
}

//Script I found online and modifed using the OneWire library, returns the temperature in fahrenheit.
