Code for CO2 sensor MG811

need code or help for CO2 sensor to activate alarm if the CO2 reach a high level.

What have you done towards this?

Have you searched the site?

Have you looked at the data sheet?

Have you any experience in electronics or programming?

We are here to help once you have done the basics.


i tried the code here but it not working

yes i looked the data sheet

no experience in arduino or programming

Code where?


google etc

i cant get my sensor to work. i plug in an external 9v to the heater but everytime i try to get a reading it won’t work

data sheet shows 6v for the heater.

what we are asking is that you post your code so we can see it and offer ideas.

here is a clue. print it and tape it to the wall.

google arduino "stuff"

like arduino mg811

here is what turned up

data sheet arduino code, the works.

Hi, what is your electronics, programming, arduino, hardware experience?

Where did you get your MG811 from.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Can you please post a copy of your sketch, using code tags?
Please use code tags.. See section 7,148850.0.html

Tom..... :slight_smile: