ESP32 with MQ7 sensor, its working well and showing values in the serial monitor, but showing a constant value in the thinger dashboard.
Here is the code for serial monitor.
#include "MQ7.h"
MQ7 mq7(2,5.0);
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println(mq7.getPPM());
delay(1000);
}
here is the output, in serial monitor,
but not working in dashboard, showing constant value. Help pllease…
this is the program for thinger
#include <ThingerESP32.h>
#include "MQ7.h"
MQ7 mq7(2,5.0);
#define USERNAME "vishnusree000"
#define DEVICE_ID "ESP32"
#define DEVICE_CREDENTIAL "vctHRlxesQ9A"
#define SSID "sree"
#define SSID_PASSWORD "12345678"
ThingerESP32 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
void setup()
{
thing.add_wifi(SSID, SSID_PASSWORD);
thing["dht1"] >> outputValue(mq7.getPPM());
}
void loop()
{
thing.handle();
}