** One could imagine adding a new tool, for example sensor_set_state, which would allow the AI to write a value to a virtual sensor. **
Example:
Reading a license plate to compare it with a list of authorized plates to open the gate.
Reading the pH of my pool dispenser, for information and alarm if the pH is too low or too high, and if the indication goes to « AL », being able to automatically restart the device.