Not OP and not OP's project, but I saw a fantastic automated hydroponic project on YT a few years back that is very similar. YT: [0] Blog Post [1] GitHub for the environmental control system [2]
[0] https://www.youtube.com/watch?v=nyqykZK2Ev4
[1] https://kylegabriel.com/projects/2020/06/automated-hydroponi...