int i=0;
float tension=0;
void setup() {
// put your setup code here, to run once:
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(8, OUTPUT);
Serial.begin(9600);
Serial.println("Hola mundo");
}
void loop() {
// put your main code here, to run repeatedly:
int sensor = analogRead(A0);
delay(1000);
digitalWrite(8, LOW);
digitalWrite(8, LOW);
tension = 5.0 * sensor/1024;
Serial.println(tension);
analogWrite(11, sensor);
}