Sensor
Base Class: Part
Part that is also a sensor. (Has ModuleEnviroSensor.)
Instance Properties:
active: bool - State of the sensor.Type: SensorType - Sensor type.display: string - Sensor read-out.consumption: double - Sensor electric consumption.
Instance Methods:
istype(): bool, name string- Accepts
sensor. (Case insensitive)
- Accepts
toggle(): void - Toggle the state.