Hi,
I'm getting the wrong voltage value from an analog input. With my multimeter (and with an Arduino mega) I got 2.565V. Using my T3.5 in the serial monitor I get 3.87V and my multimeter got 2.565V. Any ideas?
I'm getting the wrong voltage value from an analog input. With my multimeter (and with an Arduino mega) I got 2.565V. Using my T3.5 in the serial monitor I get 3.87V and my multimeter got 2.565V. Any ideas?
Code:
float sensorValue = 0;
void setup(void)
{
Serial.begin(9600);
}
void loop(){
sensorValue = ((analogRead(A8)*5.0)/1023.0);
Serial.println(sensorValue,5);
}