Using MQ7 to detect high level of CO2
Using MQ7 to detect high level of CO2
// Define the pin for the MQ7 sensor and the relay
void setup() {
pinMode(relayPin, OUTPUT);
Serial.begin(9600);
void loop() {
Serial.print(sensorValue);
Serial.println(voltage);
digitalWrite(relayPin, HIGH);
digitalWrite(relayPin, LOW);