According to the Power Fit for the graph above:
Where Rs represents resistance signal detected from the sensor and Ro represents resistance output. In order to determine the resistance output, I chose the following data:
Rs = 550 (measured from my sensor under similar conditions as the graph above)
ppm = 8 (average carbon monoxide reading in Hong Kong)
Therefore, the function to determine the ppm of carbon monoxide in the environment is:
Attaching the 3V battery source to the micro:bit, connect the circuit following the diagram below:
The Python code is uploaded to my Github page.
This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.