 	Serial.print(WLAN_SSID);
 	Serial.print("\" failed: Error ");
 	Serial.println(networkConnectionStatus);
-	return false;
 }
 
 

	return false;
}

bool connectToWirelessNetwork() {
	const uint8_t CONNECTION_ATTEMPTS = 3;
	const uint8_t CONNECTION_INTERVAL = 10 * 1000;


	if (LOG_DATA && sensorReadingSuccessful) {
		Serial.println("Logging data");

		if (WiFi.status() != WL_CONNECTED) {
			connectToWirelessNetwork();
		}

		bool dataLoggingSuccessful = false;
		if (WiFi.status() == WL_CONNECTED) {
			dataLoggingSuccessful = writeToThingSpeak(temperature, humidity);
		}

