@Techone, I'm afraid I'm going to have to disagree.
pinMode(A1, INPUT); // A bug here
//should be :
Nothing - A1 is analog pin
Pin A1 must be set as an input in order to allow the voltage on that pin to float. Actually after reset all pins are inputs, so the statement is not required - but it doesn't cause any harm either.
int sensorValue = analogRead(A1); // A bug here
should be :
int sensorValue;
sensorValue = analogRead(A1); // That is better
It's quite ok to initialise a variable at the same time as it is declared.
In any case it don't see how either of these lines could cause the symptoms reported by shubhamgandhi.
@dc42, check the link at the bottom of shubhamgandhi's first post. The schematic at least seems ok to me.