# What is SensorVM?

SensorVM (SVM) is the core virtual machine of the Sensor protocol — a decentralized execution layer purpose-built for smart devices, robotics, and IoT systems. It acts as a lightweight yet powerful operating environment where physical machines interact with the blockchain in real time.

Unlike general-purpose VMs like EVM, SensorVM is optimized for:

* Event-driven robotic logic
* Lightweight execution on low-power devices
* Direct linkage between sensor actions and smart contracts

#### 🧠 Core Concept

SensorVM acts as a bridge between physical machine behavior and on-chain programmable logic. Every action, verification, or data point from a device is processed through SVM’s modular execution environment, triggering predefined smart contract flows.

| Layer                | Function                                                             |
| -------------------- | -------------------------------------------------------------------- |
| **Sensor Layer**     | Inputs from physical machines, sensors, or robots                    |
| **SensorVM Layer**   | Executes logic, validates input, routes data to blockchain           |
| **Blockchain Layer** | Handles payouts, permissions, or data anchoring based on SVM outputs |

#### 🔧 Key Capabilities

| Feature            | Description                                                     |
| ------------------ | --------------------------------------------------------------- |
| Code Containers    | Devices execute logic modules using GitHub-like repo structures |
| Data Verifiability | All machine data can be hashed and verified on-chain            |
| Gas Optimization   | Precomputed logic paths to reduce transaction weight            |
| Modular Hooks      | Plug-in system for AI, ML, or custom smart contract libraries   |
| Token Gating       | Access control through tiered token model                       |

#### 🧩 SVM = GitHub + Terminal + Grid + AI

SensorVM is inspired by developer tools, but optimized for machine logic:

* GitHub: Repositories of prebuilt or user-generated logic
* Terminal: Lightweight execution with interaction logs
* Grid: Environment mapping and path planning modules
* AI: Optional assistant layer to recommend, optimize, or verify flows

#### 🔄 Interaction Example

1. A machine detects a task trigger (e.g. motion, delivery, operation complete)
2. SensorVM runs the associated task logic
3. It verifies the output and generates a hash proof
4. The hash and metadata are sent to a smart contract
5. If valid, a payout or permission is automatically triggered

This system ensures real-world tasks lead to programmable, decentralized outcomes.

SensorVM is the foundation of the Sensor protocol, turning hardware into secure, autonomous actors within the blockchain ecosystem.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sensorvm.gitbook.io/sensorvm-docs/introduction/what-is-sensorvm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
