This project uses an MQ sensor which detects gas and controls the green and red LEDs.
Video for the gas sensor project
This project uses a gas sensor which detects gas. When the output value from the gas sensor is over 350, the red led turns on and the green led turns off. Similarly, when the output value from the gas is less than 350, the green led turns on and red led turns off.