Learning LabMy course
A
You’re exploring a demo. Progress stays in this tab and resets when you exit the demo.
Back to my course
Mission 05 · Lesson 19

Smart planet

Engineering & energy

35–50 min + optional 15 min

Work at your pace. Take a break between stages; there is no countdown.

You need: paper, a pencil and this lab. A helper is welcome for reading and discussion.

Connect to what you know

A distance rule controlled your robot. A moisture rule can control a model watering system.

Understand it, step by step

  1. 1

    Input: a sensor reports moisture on our simplified 0–100 scale. Low values mean dry. Output: a pump is on or off.

  2. 2

    IF moisture is below 30, turn the pump on; ELSE turn it off. Recheck after watering because the input changes over time.

  3. 3

    Automation also needs failure handling. If the sensor is disconnected, our cautious classroom policy stops the pump and asks a person to check. Do not treat missing data as dry soil.

Watch a worked example

Moisture 15 → water. Moisture 60 → stop. No reading → stop and ask. This avoids running the pump endlessly because of an absent measurement.

Pause and predict

What should happen at moisture exactly 30?