void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
Serial.begin(9600);
digitalWrite(2, HIGH);//5v
}
void loop() {
// put your main code here, to run repeatedly:
int an = analogRead(0);// analogpin whit 5v = 1023
Serial.println(an);
}