Code for serially obtaining information from the sensor connected to analog pin 0 of your Arduino.
int sensor = A0;
int sensorValue = 0;
void setup(){
Serial.begin(9600);
}
void loop(){
sensorValue = analogRead(sensor);
Serial.println(sensorValue);
}