# Sensor Grid

![](/files/-Mihq_u7F1ZQH70LjL6I)

![](/files/-Mihq_u8nPZotTISywPS) - [\[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.


---

# 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://docs.ladybug.tools/hb-radiance-primer/components/0_basicproperties/sensor_grid.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.
