You will write the decisions of the microprocessor in a greenhouse. The sensors measure and your function decides. The actuators would then act.
Your tasks.
decide, return "heater on" when the temperature is below low, "window open" when it is above high, and "no change" otherwise.water_needed, return True when the soil moisture reading is below 30, and False otherwise.heater_count to the number of readings in temps that switch the heater on.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…