In file included from /home/pi/Arduino/ecoduino/ecoduino.ino:3:0:
/home/pi/Arduino/libraries/AutoWatering/AutoWatering.h:18:10: fatal error: arduino.h: No such file or directory #include <arduino.h>
^~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Leonardo.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The problem is that the library author was sloppy and got the case of the filename wrong. it's "Arduino.h", not "arduino.h". This is a common problem you'll see from developers using case-insensitive file systems like Windows and macOS have because on those operating systems there is no difference between "Arduino.h" and "arduino.h" but Linux uses a case sensitive file system, so this becomes an error for the Linux users.
You can fix it by opening /home/pi/Arduino/libraries/AutoWatering/AutoWatering.h in a text editor and changing line 18 from:
I've submitted a pull request to fix this bug in the library:
Considering the library hasn't been worked on for 8 years, I'm not sure whether DFRobot will take notice, but if nothing else it makes the fix accessible to all the users of the library.