The CJMCU-6814 is a specialized gas sensor module designed for air quality monitoring, primarily built around the MiCS-6814 sensor. It is a “3-in-1” device capable of detecting carbon monoxide (CO), nitrogen dioxide (NO₂), and ammonia (NH₃) simultaneously through three independent analog channels.
Key Technical Specifications
Important Usage Notes
If you'd like to support the development of the site with the price of a coffee — or a few — please do so here.
Here's a handy tip: you can quickly save this page as a PDF by clicking “export to PDF” in the menu on the right side of the screen.
To interface the CJMCU-6814 with an Arduino, you read the three analog output channels (CO, NH₃, NO₂) using analogRead(). This sensor typically does not use I²C, so you must connect the pins directly to the Arduino's analog inputs.
This sketch reads the raw voltage from each sensor channel every 5 seconds.
// CJMCU-6814 Basic Reading Example const int pinCO = A0; // Carbon Monoxide (RED channel) const int pinNH3 = A1; // Ammonia (NH3 channel) const int pinNO2 = A2; // Nitrogen Dioxide (OX channel) void setup() { Serial.begin(9600); Serial.println("CJMCU-6814 Gas Sensor Initializing..."); // Sensor requires a long warm-up (up to 30-120 mins) for stability } void loop() { // Read raw values (0-1023) int rawCO = analogRead(pinCO); int rawNH3 = analogRead(pinNH3); int rawNO2 = analogRead(pinNO2); // Convert to voltage (assuming 5V Arduino) float voltCO = rawCO * (5.0 / 1023.0); float voltNH3 = rawNH3 * (5.0 / 1023.0); float voltNO2 = rawNO2 * (5.0 / 1023.0); // Print results Serial.print("CO: "); Serial.print(voltCO); Serial.print("V | "); Serial.print("NH3: "); Serial.print(voltNH3); Serial.print("V | "); Serial.print("NO2: "); Serial.print(volt8); Serial.println("V"); delay(5000); }
This page has been accessed for: Today: 1, Until now: 46