71 MQ2(
const unsigned int& digitalOutputPinNumber);
Base class for the MQ-series gas sensors (MQ2, MQ7, ...).
Definition: GasSensor.h:19
Interface for analog-to-digital converter components (e.g.
Definition: AnalogDigitalConverterComponent.h:14
MQ-2 gas sensor, typically used for detecting smoke.
Definition: MQ2.h:14
void Initialize() override
Initializes the MQ-2's datasheet values: load resistor, clean-air factor, detectable range,...
Definition: MQ2.cpp:101
virtual ~MQ2()
Destroys the sensor, turning it off first.
Definition: MQ2.cpp:85
MQ2()
Builds a default MQ-2 (smoke) sensor and initializes its datasheet values.
Definition: MQ2.cpp:15
RumPi is the library's top-level facade.
Definition: AlertManager.h:6