Create a fake Sensor

Use a fake sensor to test implementing a sensor component on your robot without any physical hardware.

Configure a fake sensor as follows:

Navigate to the Config tab of your robot’s page in the Viam app. Click on the Components subtab and navigate to the Create component menu. Enter a name for your sensor, select the type sensor, and select the fake model. Click Create component.

An example configuration for a fake sensor in the Viam app Config Builder. Attributes are left blank.

    "name": "<your-sensor-name>",
    "type": "sensor",
    "model": "fake",
    "attributes": {}

No attributes are available for fake sensors.

Have questions, or want to meet other people working on robots? Join our Community Discord.