 
 void loop()
 {
-	byte btReceivedByte;
+	unsigned char btReceivedByte;
 
 	while (bluetoothSerial.available())
 	{

#pragma region "Diagnostics"
void printSensorValues()
{
	for (byte i = 0; i < sizeof(sensorPins); i++)
	{
		Serial.print(sensorValues[i]);
		Serial.print('\t');

	}

	// Reset for next crossing
	for (unsigned char i = 0; i < sizeof(isEachDiversionOnCrossing); i++)
	{
		isEachDiversionOnCrossing[i] = false;
	}
