fbpx Placeholder canvas

Coding of Gas Sensor with Arduino Uno

After making the connection, click on the code bar.

Then make a variable named smoke. In this variable, we will store the vale coming from the gas sensor i.e. at analog pin A1.

Drag and Drop the “If Else” block in the “coding area”.

Then, in the “if-then-else statement “set if the smoke coming from the gas sensor is greater than 400 then the buzzer will beep else it will not beep as shown below: