# Sensor Grid

![](https://2572426507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9X8PomX22wWVDNCoj%2Fuploads%2Fgit-blob-88a53162619b003560b6346284b9399545be5cb8%2FSensor_Grid.png?alt=media)

![](https://2572426507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9X8PomX22wWVDNCoj%2Fuploads%2Fgit-blob-b5dfbd9330b42626092529d813b03af36bdefbf1%2FSensor_Grid.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/honeybee-grasshopper-radiance/blob/master/honeybee_grasshopper_radiance/src/HB%20Sensor%20Grid.py)

Create a Sensor Grid object that can be used in a grid-based recipe.

### Inputs

* **name**

A name for this sensor grid.

* **positions \[Required]**

A list or a datatree of points with one point for the position of each sensor. Each branch of the datatree will be considered as a separate sensor grid.

* **directions**

A list or a datatree of vectors with one vector for the direction of each sensor. The input here MUST therefor align with the input \_positions. If no value is provided (0, 0, 1) will be assigned for all the sensors.

* **mesh**

An optional mesh that aligns with the sensors. This is useful for generating visualizations of the sensor grid beyond the sensor positions. Note that the number of sensors in the grid must match the number of faces or the number vertices within the mesh.

* **base\_geo**

An optional Brep for the geometry used to make the grid. There are no restrictions on how this brep relates to the sensors and it is provided only to assist with the display of the grid when the number of sensors or the mesh is too large to be practically visualized.

### Outputs

* **grid**

An SensorGrid object that can be used in a grid-based recipe.
