My project is a smart irrigation system that uses the M5STACK to function.
It has a moisture sensor that should be put in the soil of the plant, and this is connected to the M5STACK which is connected to a relay which is connected to a Pb.HUB which is connected to a Motor which is connected to a pipe which is connected to an AC/DC Adapter.
After the moisture sensor is put in the soil, it will send the M5STACK a signal and tell it whether the soil has enough moisture or not.
If it has enough moisture, the M5STACK will wait 10 mins and check again if there is enough moisture in the soil.
If the soil doesn’t have enough moisture, the M5STACK will start the pump for 250 ms and let the water enter the soil through a pipe.