Need help with code for greenhouse automation

Would you like to have a look at