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

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

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.