int time = 50;
float v1;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int b = analogRead(0);
v1 = 5.*b/1023.;
int c = b/4;
analogWrite(3,c);
Serial.print(b);
Serial.print(" ");
Serial.print(c);
Serial.print(" ");
Serial.println(v1,4);
delay(time);
}