hello guys. how can i add other harmful gasses in my gauge in blynk?
i want it to detect like 3 or 4 gasses but i dont know how. i can only detect smoke
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
char auth[] = "1BWJfzIRUtWnqiJPGPgfSj8ek7p4jX9T";
char ssid[] = "VIRUS";
char pass[] = "censored";
SimpleTimer timer;
int mq135 = A0; // smoke sensor is connected with the analog pin A0
int data = 0;
void setup()
{
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, getSendData);
}
void loop()
{
timer.run(); // Initiates SimpleTimer
Blynk.run();
}
/***************************************************
* Send Sensor data to Blynk
**************************************************/
void getSendData()
{
data = analogRead(mq135);
Blynk.virtualWrite(V2, data); //virtual pin V3
if (data > 600 )
{
Blynk.notify("Smoke Detected!!!");
}
}