grow/sketch.c
david a5d3bfe5c5 Dev prototype (#1)
Co-authored-by: David Westgate <david@dwestgate.us>
Reviewed-on: https://git.dwestgate.us/david/grow/pulls/1
2025-04-24 11:34:49 -07:00

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);
}