int pinpotensio = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
int potensio = analogRead(pinpotensio);
float voltase = potensio*(5.0/1023.0);
int outputvalue = map(potensio,0,1023,0,225);
Serial.print("Tegangan = ");
Serial.print(voltase);
Serial.print("\t potensio = ");
Serial.print(potensio);
Serial.print("\t output = ");
Serial.println(outputvalue);
delay(3000);
}