 		digitalWrite(leds[0], HIGH);
 		//set current state to active
 		currentRoomState = ACTIVE;
-		returnCode = publishToBroker("state", "active");
-	}
-	//if message publish not successful, error has occured
-	//report an error until board restarted and problem fixed
-	while (returnCode != 0) {
-		//turn off state LEDs
-		for (int i = 0; i < numLeds - 1; i++) {
-			digitalWrite(leds[i], LOW);
-		}
-		//flash send LED twice a second
-		digitalWrite(leds[3], HIGH);
-		delay(250);
-		digitalWrite(leds[3], LOW);
-		delay(250);
-	}
-	//turn off send LED
-	digitalWrite(leds[3], LOW);
+		publishToBroker("state", "active");
+	}
 }
 
 /**

char room[21] = "roman"; //name of room within building

//MQTT constants
#define MQTTCLIENT_QOS2 1
const char* mainTopic = "londonbridge";
MQTT::QoS qos = MQTT::QOS1;
bool retained = true;

//Room State

	returnCode = ipstack.connect(host, port);
	//if IP connection successful
	if (returnCode == 1) {
		//dynamically set the room's state for will message topic
		char willTopicBuffer[100];
		strcpy(willTopicBuffer, mainTopic);
		strcat(willTopicBuffer, "/");
		strcat(willTopicBuffer, room);
		strcat(willTopicBuffer, "/state");

		//initialise MQTT connection data
		MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
		data.willFlag = 1;
		data.MQTTVersion = 4;
		data.clientID.cstring = (char*)"sensor-1";
		data.will.topicName.cstring = (char*)willTopicBuffer;
		data.will.qos = 2;
		data.will.retained = 1;
		data.will.message.cstring = (char*)"error";
		//connect to MQTT broker
		returnCode = mqttClient.connect(data);
		//if MQTT connection successful
