    

 ## On this page

  

 

 # create\_sensor

 Last update: 16.07.2026 

<a id="compolyx.Model.create_sensor"></a>

## Model.create\_sensor(name, id=None, active=True, sensor\_type='SENSOR\_BY\_AREA', entities=None, locked=False)

Create new sensor.

### Parameters

- name: Name of the rule.
- active: Whether the sensor is active.
- sensor\_type: Type of sensor. Valid options: SENSOR\_BY\_AREA, SENSOR\_BY\_MATERIAL, and SENSOR\_BY\_PLIES.
- entities: Entities of the sensor.

### Returns

The created sensor.