My code is :
int analogPin = 1;
int val = 0;
void setup() {
Serial.begin(9600); // setup serial
}
void loop() {
val = analogRead(analogPin); // read the input pin
Serial.println(val);
delay(100);
}
And the schematic is attach, but I don't know how do you want a schematic so I made this.
Thank you for your answer,
Styvak
