Hi everyone,
I’m currently trying to use a CO2 sensor. It runs with a 5V heating voltage (passed directly from USB) and outputs a test voltage, which is fed into an impedance converter:
I then take its output into my microcontroller, which shows a voltage of around 75mV for an ESP32. However, if I measure it with a voltmeter, I get 200mV - which is an expected value considering the datasheet.
Example code for the ESP32:
void setup() {
Serial.begin(115200);
pinMode(35, INPUT);
}
float voltage = 0;
void loop() {
voltage = (analogRead(35)*3300.0)/4096.0;
Serial.println(voltage);
}
What am I missing here? I’m still a beginner, so please be patient with me
Thanks a lot already!
CO2_Sensor.pdf (529 KB)