Design of a fuzzy logic based automated shading and irrigation system