Skip to content

PID-26 Environment Sensor ​

Instance declaration ​

When you add a PID-26 Environment Sensor block to the workspace, the following instance declaration is automatically inserted into the Python code:

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

Parameters ​

NameKindDescriptionRange / TypeDefault
indexDropdown optionInstance number (starting from 0)Integer 0 or greater0

Start the environment sensor ​

Uses the PID-26 Environment Sensor.

start

Parameters ​

(none)

Python ​

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

pid26.start()

Temperature ​

Returns the temperature value measured by the PID26 environment sensor.

temperature

Parameters ​

(none)

Python ​

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

pid26.temperature()

Humidity ​

Returns the humidity value measured by the PID26 environment sensor.

humidity

Parameters ​

(none)

Python ​

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

pid26.humidity()

Pressure ​

Returns the atmospheric pressure value measured by the PID26 environment sensor.

pressure

Parameters ​

(none)

Python ​

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

pid26.pressure()