TP401 Class
- ID: tp401
- Name: TP401 Gas Sensor
- Other Names: Grove Air Quality Sensor
- Category: gaseous
- Manufacturer: seeed
- Connection: analog
- Link: https://www.seeedstudio.com/Grove-Air-quality-sensor-p-1065.html
- Kit: hak
The TP401 Gas Sensor module is useful for monitoring air purity indoors. It can detect CO and a wide range of other harmful gases, but, due to a limited detection range, it should be used only when qualitative results are needed. Example applications are air recirculation, ventilation systems, and refreshing sprayers. The sensor is linear and should be roughly sensitive to 0-20 ppm CO from 0-4 V. Note: the sensor requires 2-3 minutes to warm up initially and 48 hours of operation to stabilize completely.
Methods
TP401
-
gasPin
TP401 constructor
Parameters:
-
gasPin
NumberAnalog pin where the sensor is connected
Returns:
name
()
String
Returns the name of the sensor
Returns:
Name of the sensor
getPPM
()
Number
Returns one sample in parts per million (ppm) of CO in the air based on the following sensor calibration: 0-4 V is roughly 0-20 ppm CO
Returns:
New sample converted to ppm CO