  */
 {
 	outputDataBuffer += OUTPUT_START_CHAR; // Start the message.
-	for(int i=0;i<sizeof(sensors)/sizeof(sensors[0]);i++)
+	for(long int i=0;i<sizeof(sensors)/sizeof(sensors[0]);i++)
 	{
 		outputDataBuffer += String( sensors[i]->getIdentifier() );
 		outputDataBuffer += DATA_DELIMITER;

	else
	{	
	  // Check what value is coming next strings
	  for(int actuatorI=0;actuatorI<sizeof(actuators)/sizeof(actuators[0]);actuatorI++)
	  {
	  	if (strcmp(token, actuators[actuatorI]->getIdentifier()) == 0)
	  	{

 */
{
	int setupDelay(0); // By default wait for 0 seconds, i.e. arm nothing.
	for(long int i=0;i<sizeof(actuators)/sizeof(actuators[0]);i++) // Arm all actuators.
	{
		int delayRequested = actuators[i]->arm();
		if (delayRequested > setupDelay) setupDelay = delayRequested;
	}
	for(long int i=0;i<sizeof(sensors)/sizeof(sensors[0]);i++) // Arm all sensors.
	{
		int delayRequested = sensors[i]->arm();
		if (delayRequested > setupDelay) setupDelay = delayRequested;
