Code look OK ... Hmm...Not so..so..
pinMode(A1, INPUT); // A bug here
//should be :
Nothing - A1 is analog pin
------
int sensorValue = analogRead(A1); // A bug here
should be :
int sensorValue;
sensorValue = analogRead(A1); // That is better