#include int hall=A2; SoftwareSerial mySerial(0, 1); void setup() { // put your setup code here, to run once: mySerial.begin(9600); pinMode (hall,INPUT); } void loop() { // put your main code here, to run repeatedly: int lectura=analogRead(hall); float outputV = lectura * 5.0 / 1023; mySerial.println(outputV); delay(100); }