From b7fd6f000e85addadfff6d90378604dc7a6cf72d Mon Sep 17 00:00:00 2001 From: JhonatanRamirez Date: Thu, 23 May 2019 16:56:30 -0500 Subject: [PATCH] Ended mq5 --- examples/MQ-5/{MQ4.ino => MQ-5.ino} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename examples/MQ-5/{MQ4.ino => MQ-5.ino} (82%) diff --git a/examples/MQ-5/MQ4.ino b/examples/MQ-5/MQ-5.ino similarity index 82% rename from examples/MQ-5/MQ4.ino rename to examples/MQ-5/MQ-5.ino index 613a5a8..fc175fe 100644 --- a/examples/MQ-5/MQ4.ino +++ b/examples/MQ-5/MQ-5.ino @@ -18,22 +18,22 @@ //Definitions #define pin A0 //Analog input 0 of your arduino -#define type 4 //MQ4 +#define type 5 //MQ4 //Declare Sensor -MQUnifiedsensor MQ4(pin, type); +MQUnifiedsensor MQ5(pin, type); void setup() { //init the sensor - MQ4.inicializar(); + MQ5.inicializar(); } void loop() { //Read the sensor - int read = MQ4.readSensor(); + int read = MQ5.readSensor(); //Print measurements - Serial.print("MQ4: "); + Serial.print("MQ5: "); Serial.print(read); Serial.println(" PPM"); //delay 1s to next measure