Y is this happening?

pinMode(3,OUTPUT);
digitalWrite(3, HIGH);
...
pinMode(3,INPUT);

The Vs pin of the sensor should be high all the time.
You read the value of the sensor on the same pin as Vs?
The output of the sensor is the middle pin.