Strangeness in timings and dependency on the internet

If I recall correctly, that was implemented for a workflow requiring the pin to be read in one sequence, and then that value used in another sequence. For example:

  • FarmBot mounts the soil moisture sensor tool, takes a measurement, and then dismounts the tool.
  • Later, a different sequence is run to water the garden based on the outcome of an IF statement evaluating the cached soil moisture sensor pin reading. If it didn’t check a cached result, then it would attempt to read the pin in the moment, when the soil sensor tool was no longer mounted.

Here is this stated in different words: Soil sensor and sequences - #2 by RickCarlino

A quick solution for that ---- Forum 9120 sequence would be to add a READ SENSOR command for the Tool Verification Pin right before the IF command.

Edit: I suppose at the FBOS level if the cache is empty, it could read the pin in the moment? What were you thinking?