Concept Flow - Soil moisture sensor
Start
Initialize sensor pin
Read sensor value
Convert value to moisture level
Print moisture level
Wait some time
Read sensor value
The program starts by setting up the sensor pin, then repeatedly reads the sensor, converts the reading to moisture level, prints it, waits, and repeats.
