 {
 	Serial.print("Sensor 1: ");
 	//Serial.println(val);
-	float vol = map(val, 0, 300, 0, 100) / 100.;
+	float vol = map(val, 0, 100, 0, 100) / 100.;
 	Serial.println(val);
 	dc1.amplitude(vol);
 

	dc1.amplitude(1.);
	dc2.amplitude(1.);

	// Start playback
	digitalWrite(syncPin, HIGH);
}

void loop()
{
	if (play)
		playFile(tounes[currentSong]);
}

const byte ledPin2 = 14;
// Sensors
const byte sensorPin1 = 5;
const byte sensorPin2 = 8;
// Sync
const byte syncPin = 3; 
const byte playPin =  4;
bool play = 0;

const char *tounes[] = {"toune1.wav", "toune2.wav"};
int nbTounes = sizeof(tounes)/sizeof(tounes[0]);
int currentSong = 0;

