Hello, I'm a total beginner in the arduino/teensy world, and I'm facing issues on my first attempt.
I have the following code :
For now, nothing is connected to the A0 pin. I was expecting a flat "0" value, but I'm seeing fluctuations instead. I don't understand why this is happening.
I'm using a teensy 4.1
I have the following code :
Code:
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue1 = analogRead(A0);
Serial.println(sensorValue1);
delay(10);
}
For now, nothing is connected to the A0 pin. I was expecting a flat "0" value, but I'm seeing fluctuations instead. I don't understand why this is happening.
I'm using a teensy 4.1