Code to measure different gases using MQ 135 sensor

How do sensors identify different gases using Arduino code?

Hello dikshakumarikangra07

Read and study the data sheet of sensor hardware selected.

try a web search for mq135 sensor arduino, e.g. interfacing-mq-135-gas-sensor-arduino
also look at the MQ135 library

A very strange sounding question... although maybe it's because English is not my native language.
Do you think that using an arduino, the sensor detects gases in a different way than using any other microcontroller?

The sensor is sensitive to all the gases mentioned , but cannot identify the make up of the gas ( ie can’t identify CO in a mixture of gases to which it is also sensitive ).
So what you want to do is impossible
( it maybe that it is differently sensitive at different heater voltages to specific gases , but that’s a research area)

Most Arduino gas sensors don't identify any specific gas, but there are a few, like this CO2 sensor, that use laser absorption to detect and measure a specific gas.

Is a laser sensor able to detect colors using LED light?

Colors of what? A gases?

color of an object or light.

Color sensors

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