cshenfu
2023-03-15 55c225b3b8ede27e50722af4828d8fb51d4c9587
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int sensorPin = A0;
int ledPin = 13;  
int sensorValue = 0; 
 
void setup() {
  Serial.begin(115200);
}
 
int i = 0;
void loop() {
  
  sensorValue = analogRead(sensorPin);
  Serial.print(i);
  Serial.print(",");
  Serial.print(sensorValue);
  Serial.println(";");
  i = i + 1;
 
  delay(10);
}