CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Agriculture

🌾 Agriculture · State Machine

Automated Irrigation Controller

The states of an automated drip irrigation controller: idle, scheduled watering, moisture-based watering, rain delay and fault handling.

More Agriculture templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • Watering starts on schedule or when soil is too dry
  • Rain forecast delays watering to save water
  • Low pressure or no flow triggers a fault alert

Prompt used

State machine for an irrigation controller: Idle, Checking conditions at scheduled time or when soil moisture drops below 25%, Rain Delay if rain is forecast within 12 hours, Opening Valve, Watering until the target moisture or time limit, Closing Valve and back to Idle. No flow or low pressure while watering goes to Fault, alerting the farmer; Manual Override allows the farmer to start or stop from the app.

Mermaid code
stateDiagram-v2
  [*] --> Idle
  Idle --> CheckingConditions: Schedule time or moisture below 25%
  CheckingConditions --> RainDelay: Rain forecast within 12h
  RainDelay --> Idle: Delay over
  CheckingConditions --> OpeningValve: OK to water
  OpeningValve --> Watering
  Watering --> ClosingValve: Target moisture reached or 45 min
  Watering --> Fault: No flow or low pressure
  Fault --> Idle: Farmer resets
  ClosingValve --> Idle
  Idle --> ManualOverride: Farmer starts from app
  ManualOverride --> Watering

Inside this diagram

A state diagram with 8 states and 11 transitions.

States

  • Idle
  • CheckingConditions
  • RainDelay
  • OpeningValve
  • Watering
  • ClosingValve
  • Fault
  • ManualOverride

Starts in

  • Idle

Transitions

  • Idle β†’ CheckingConditions when Schedule time or moisture below 25%
  • CheckingConditions β†’ RainDelay when Rain forecast within 12h
  • RainDelay β†’ Idle when Delay over
  • CheckingConditions β†’ OpeningValve when OK to water
  • OpeningValve β†’ Watering
  • Watering β†’ ClosingValve when Target moisture reached or 45 min
  • Watering β†’ Fault when No flow or low pressure
  • Fault β†’ Idle when Farmer resets
  • ClosingValve β†’ Idle
  • Idle β†’ ManualOverride when Farmer starts from app
  • ManualOverride β†’ Watering

Make your own diagram like this

Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.

Related templates

DeploymentProAgriculture

Precision Farming IoT Deployment

Where each part of a precision farming system runs: soil and weather sensors in the field, a solar-powered LoRaWAN gateway, and cloud services for irrigation and advice.

FlowchartAgriculture

Farm-to-Market Supply Chain

How produce moves from the farm to the buyer: harvest, grading, collection centre, mandi or online market, and payment to the farmer.

Data FlowAgriculture

Crop Monitoring Data Pipeline

How satellite and drone imagery plus field sensors become crop health alerts and advice for farmers.

SequenceAgriculture

Mandi Price and Selling App

How a farmer checks crop prices across nearby mandis and books a sale: live prices, transport cost, best net price and booking.

Database ERDAgriculture

Farm Records Database Schema

A schema for a farm management app: farmers, plots, crop cycles, inputs applied, activities and harvests.

C4 ArchitectureProAgriculture

Farm Management Platform Architecture

A platform farmers use to plan crops, record field work and inputs, and get advisory and market prices.