Skip to content

Instantly share code, notes, and snippets.

const String CHANNEL_ID = "XXXXXXXXXXXX"; // The Readiness.io channel ID
const String SENSOR_ID = "XXXXXXXXXXXXX"; // Your AgriWebb or made up sensor ID
const String TOPIC = "XXXXXXX"; // The type of sensor or name of the data your sending
const String VERSION = "1";
const String FORMAT = ""; // leave this blank unless there is a specific readiness format you need.
// i.e. agriwebb
const char* WIFI_SSID = "XXXXXXX"; // Your WiFi SSID / name
const char* WIFI_PASS = "XXXXXXX"; // Your WiFi password
#include "DHT.h"
#include <readiness_io.h>
#include <Ticker.h>
#include "config.h"
const int LED_PIN = 0; // The pin connecting the LED (D3)
const byte INTERRUPT_PIN = 12; // The pin connect the test button (D6)
volatile byte interrupt = 0;