Closed gilshallem closed 3 years ago
I don't get the point of reading the values continuously as the sensor is a semiconductor gas sensor which detect gases by a chemical reaction that takes place when the gas comes in direct contact with the sensor. The concentration is calculated through a ratio between the the R0 (clean air) and RL (sample).
There are two points here:
Therefore, showing the values during the heating is not interesting; except for specific experiments or observations.
The library was designed to provide a ready-to-use driver for the sensor. If you want to do some experiment, I suggest cloning the library and modifying the code or design your own code to achieve your needs. You can also just copy/paste some pieces of code to reach your goal.
Hi, noob question: If I call "MQ131.startHeater();" then can i check the values every x millis without stopping the heater, and in this way get live data?
Example: (I overrided the library to give me access to the private methods)