The software program is important to control the watering system to water the plants in different pots with different water quantity. #include <SPI.h>
const int EN = 8; // Set pin 8 to control Enable pin of TLE94112
const int CSN = 10; // Set pin 10…