i'm currently making an automatic garden that has artificial light but it has to lit for 16 hours straight and 8 hours off, but it also has a humidity sensor for the soil so when this gets to low a small 5v pump will kick in and water the soil until.
so my question: how can i easily turn the lights on/off while the pump also runs and how can i make hours easier to put in my program.