16 lines
315 B
C
16 lines
315 B
C
void setup() {
|
|
Serial.begin(9600);
|
|
}
|
|
|
|
void loop() {
|
|
int moisture0 = analogRead(A0);
|
|
delayMicroseconds(100);
|
|
analogRead(A1);
|
|
int moisture1 = analogRead(A1);
|
|
Serial.print("{\"A0\":");
|
|
Serial.print(moisture0);
|
|
Serial.print(",\"A1\":");
|
|
Serial.print(moisture1);
|
|
Serial.println("}");
|
|
delay(1000);
|
|
} |