The MD61 and MD62 sensor work in a
Wheatstone Bridge:
In the above drawing, Rx is unknown. When R2 is adjusted to the exact same resistance, the resistance over the left and the right path is exactly the same.
The voltmeter between D and B will show a difference of zero Volt.
In the schematic for the analyser
- the resistors R1 and R3 are inside the MD61/MD62
- the variable resistor (potentiometer) is at point C, and this must be a 10-turn potmeter.
- two equal resistors are at the R2 and Rx positions
- the voltage supplied to A and C must be 3.00 Volt
- the measurement between D and B is done by the ADS1115 component
The above is simply physics and has nothing to with the analyser yet.
In the sensor, the left pair of pins is connected to a sealed compartment which is the reference.
The right pair of pins is connected to the open compartment - this is the unknown resistor and the resistance varies with the gas analyzed. As described in the datasheet, the sensor must be given time to warm up.
Since a
Wheatstone Bridge is
extremely sensitive, all connections
must be soldered and
not placed on a breadboard. This introduces too much variable resistance.
The sensor is very sensitive to carbondioxide, so if you are breathing out over the sensor while turning the little screw on the potmeter, it will keep varying.
Read the
link about the Wheatstone Bridge and apply the theory.
Use a multimeter to check that there's a stable 0V and 0mA between D and B.
Check that the power supply is 3.00V.
Using 3.3V will sooner or later kill the sensor.