 
 void loop()
 {
-	// sensorValue = analogRead(analogInPin);
+	sensorValue = analogRead(analogInPin);
 	// sensorValue++;
 
 	// Serial.println(sensorValue);

		        		break;
		        	case PIPE_CONNECTIONCONTROL_SLAVELATENCY_RX_ACK_AUTO:
		        		Serial.println(F("SLAVELATENCY: "));
		        		printData(aci_evt);

		        		// One byte
 						// big-endian !!!!

	// 	Serial.println(timing_resp);
	// 	sensorValue = 200;
	// }
	int push = buffer_push(sensorValue);

	if(push == 1) {
		Serial.print(sensorValue);
		Serial.print(" @ ");
		Serial.println(buffer_size());
	} else {
		Serial.println(F("Data buffering failed!"));
	}

	analyseData(sensorValue);

	aci_loop();
	
	if (isChannelOpen())
	{
		Serial.println("Channel open");
		handleCommands();
		if(checkTransmissionCriteria()) {
			sendData();
		}
	}

	delay(sleep_time);
}

