This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BLYNK_PRINT Serial | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
BlynkTimer timer; | |
char auth[] = "********************************"; | |
char ssid[] = "********************************"; | |
char pass[] = "********************************"; | |
int n; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int VAL_PROBE = 0; //Analog pin 0 | |
const int MOISTURE_LEVEL = 450; // the value after the LED goes on | |
void setup() | |
{ | |
Serial.begin(9600); | |
pinMode(13, OUTPUT); | |
pinMode(7, OUTPUT); | |
} | |
void LedState(int state) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BLYNK_PRINT Serial | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define ONE_WIRE_BUS D2 | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature sensors(&oneWire); | |
char auth[] ="**************************"; | |
char ssid[] ="**************************"; |