Digital electronics

a) You are given soil moisture sensor, water level sensor, temperature sensor, humidity
sensor, a water pump and an Arduino microcontroller to be used to automate the
irrigation system of a greenhouse. It is preferred that the pump comes on only when
the soil moisture level and humidity are low and water level is ≥50% or when the
temperature is high and the soil moisture is low.
i. Describe, using a diagram, how you would connect the given devices together to
model the smart greenhouse system intended. (2)
ii. Draw truth table for the system. (3)
iii. Represent the problem in SOP and POS. (4)
iv. Using appropriate gates, implement the function to control the pump. (6)

Just quickly refer to your class notes, na utapata answers.