Grove Air Quality Sensor v1.3 Issues

[Relatively new to coding on Arduino and messing around with plugging in new components]

Hello, I am working on an air quality sensor project and I am having some trouble with the sensor values not seeming to change even if I blow smoke into them. What I am using is a Arduino Nano 33 BLE Sense board and a Grove Air Quality Sensor v1.3 directly plugged into it.

Here is my code:

#include "Air_Quality_Sensor.h"

AirQualitySensor sensor(A0);

void setup(void) {
    Serial.begin(9600);
    while (!Serial);

    Serial.println("Waiting for sensor to initialize...");
    delay(20000);

    if (sensor.init()) {
        Serial.println("Sensor ready.");
    } else {
        Serial.println("Sensor ERROR!");
    }
}

void loop(void) {
    int quality = sensor.slope();
    int sensorValue = sensor.getValue();

    Serial.print("Sensor value: ");
    Serial.println(sensorValue);

    if (quality == AirQualitySensor::FORCE_SIGNAL) {
        Serial.println("High pollution! Force signal active.");
    } else if (quality == AirQualitySensor::HIGH_POLLUTION) {
        Serial.println("High pollution!");
    } else if (quality == AirQualitySensor::LOW_POLLUTION) {
        Serial.println("Low pollution.");
    } else if (quality == AirQualitySensor::FRESH_AIR) {
        Serial.println("Fresh air.");
    }

    int aqi = map(sensorValue, 0, 1023, 0, 500); 
    Serial.print("AQI: ");
    Serial.println(aqi);

    delay(1000);
}

The output of the code has the sensorValue never going below or above 200 by 4 values. The range is always 197-204. I have never seen it be different, even when I put bug spray or smoke in front of the sensor.

Any help would be greatly appreciated.

Sorry, that doesn't convey any useful information, and a wiring error would explain your problem.

Please post a picture of hand drawn wiring diagram, with connections and pins clearly labeled.

Sorry, like I said, I am new to this. All I have is the air quality sensor and the Arduino board

That's the sensor it uses

Of particular note is the 300mW power consumption and the line that says "Warm-up time More than 48 hours".

It sounds like there is a 'bake off' process that takes many hours before the sensor gives sensible readings.

Your picture shows the
Arduino Nano 33 BLE Sense board and a **Grove Air Quality Sensor v1.3 (OV7675) **
both mounted on a blue base board which you havent mentioned. What is that?
And also another blue board with U2 on it?

Are you sure the yellow wire is connected to A0?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.