# fake

Reference for the fake movement-sensor model. Fake movement sensor to test software without any hardware.
> Source: https://docs.viam.com/reference/components/movement-sensor/fake/


You can use the `fake` movement sensor model to test movement sensor code without connecting to any actual hardware.

The `fake` model supports all movement sensor methods: `Accuracy`, `AngularVelocity`, `CompassHeading`, `LinearAcceleration`, `LinearVelocity`, `Orientation`, `Position`, `Properties`, and `Readings`.
Note that this model does not get any actual readings, so it supports these methods by returning placeholder data.




### JSON Template

```json
{
  "components": [
    {
      "name": <sensor_name>,
      "model": "fake",
      "api": "rdk:component:movement_sensor",
      "attributes": {},
      "depends_on": []
    }
  ]
}
```

### JSON Example

```json
{
  "components": [
    {
      "name": "myFakeSensor",
      "model": "fake",
      "api": "rdk:component:movement_sensor"
    }
  ]
}
```



