Bureaucrats, emailconfirmed, Administrators
5,340
edits
No edit summary |
|||
Line 36: | Line 36: | ||
The received data is stable enough to set thresholds for simple if-else conditions in the arduino code, but with the disadvantage that it has to be adjusted form time to time. | The received data is stable enough to set thresholds for simple if-else conditions in the arduino code, but with the disadvantage that it has to be adjusted form time to time. | ||
void setup() { | void setup() { | ||
pinMode(13, OUTPUT); | pinMode(13, OUTPUT); | ||
Serial.begin(9600); | Serial.begin(9600); | ||
} | } | ||
void loop() { | void loop() { | ||
int plant = analogRead(A0); | int plant = analogRead(A0); |