Arduino and Ozone sensor

The ozone sensor and the Arduino

Brief guide shows you how to use a gas sensor using Arduino.


In this example we used the following elements:



Module ozone works directly with the Arduino, so no need for an external source of energy. Contacts connect your null-modem according to the following table:


Pin SensorPin Arduino



Wiring diagram of the sensor of ozone and Arduino Uno.



The output DOUT is in digital form. Default in the low state, and the detection of particles of ozone goes high. The sensitivity can be regulated with the built-in potentiometer. The analog output AOUT is working and decreases its value with increasing concentration of ozone (it is inversely proportional). In the example we will use a simple program code that on a regular basis will show on the serial monitor the values read from AOUT and DOUT.


int sensor_AOUT = A1; //connected from AOUT to the sensor to A1 on the Arduino 
sensor_DOUT int = 2; //connect DOUT from sensor to Arduino pin 2 
wartosc_AOUT int; //variable for the value of AOUT 
wartosc_DOUT int; //variable for the value of DOUT 

void setup() { 
 Serial.begin(9600); //start the monitor serial port 
 pinMode(2, INPUT); //set pin 2 as input 


void loop() { 

 wartosc_AOUT = analogRead(sensor_AOUT); //load values from AOUT 
 wartosc_DOUT = digitalRead(sensor_DOUT); //load values DOUT 

 Serial.print("D0: "); //display on serial monitor 
 Serial.print(" -- A0: "); 
 delay(200); //delay between consecutive readings 


The results of the program you can see in the following screenshot:


A screenshot of the serial monitor.