Skip to content

Search the documentation

Kit
Firmware

GasSensor

Smart Home

Notices gases and smoke in the air. A tiny heated plate changes how well it conducts electricity when those gases touch it.

The GasSensor class is reached through this attribute of home.

Always there.

All the attributes of home are in its table.

How much gas or smoke the sensor feels, as a raw reading from 0 to 4095 (higher means more).

level() -> Optional[int]

Used in examples: Web dashboard, Smart house