Oxygen Level Detection with MiCS5524

Oxygen Level Detection with MiCS5524

Objective

This experiment uses the MiCS5524 gas sensor to measure the concentration of oxygen in the air.

Required Components

Working Principle

The MiCS5524 sensor detects oxygen levels by monitoring changes in its resistance in response to the gas's presence in the air.

Circuit Wiring

Follow the steps below to connect the MiCS-5524 gas sensor to the Arduino board:

Make sure to use a breadboard and jumper wires for secure and organized connections. Verify all connections before powering the circuit to prevent any short circuits.

Arduino Code


/*
 * Oxygen Level Detection with MiCS5524
 * This code reads the oxygen concentration from the MiCS5524 sensor.
 */

const int sensorPin = A0;  // MiCS5524 sensor connected to analog pin A0
int sensorValue = 0;

void setup() {
  Serial.begin(9600);  // Initialize serial communication
}

void loop() {
  sensorValue = analogRead(sensorPin);  // Read the sensor value
  Serial.print("Oxygen Level: ");
  Serial.println(sensorValue);
  delay(1000);  // Wait for 1 second before the next reading
}
            

Results

The serial monitor will display the oxygen concentration detected by the sensor.

Applications

Conclusion

The MiCS5524 gas sensor is a useful tool for detecting oxygen levels, with applications in air quality monitoring, medical systems, and confined space safety.