PiStorms  4.015
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
GroveDevices.Grove_Air_Quality_Sensor Class Reference

This class supports the Grove Air Quality Sensor v1.3. More...

Inheritance diagram for GroveDevices.Grove_Air_Quality_Sensor:
PiStorms_GRX.GrovePort

Public Member Functions

def __init__
 
def airQuality
 
def qualitativeMeasurement
 
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__
 

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort
 comm
 
 readValue
 
 writeValue
 

Detailed Description

This class supports the Grove Air Quality Sensor v1.3.

This sensor detects harmful gases like "carbon monoxide, alcohol, acetone, thinner, formaldehyde." It is best to leave the sensor on for a bit and let the value stabalize for an accurate reading.

Documentation: http://wiki.seeed.cc/Grove-Air_Quality_Sensor_v1.3/

1 import GroveDevices
2 # initialize an air quality sensor connected to Bank A analog 1
4 if (air.qualitativeMeasurement() != "Fresh air"):
5  print("There are harmful gases nearby, you might want to open a window.")

Member Function Documentation

def GroveDevices.Grove_Air_Quality_Sensor.airQuality (   self)
Returns
A number corresponding with the air quality. Higher numbers mean more pollutants are present.

The documentation for this class was generated from the following file: