# data[].attributes.body
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
//#include <analogWrite.h>

char auth[] = "6QF0Xa";
char ssid[] = "";
char pass[] = "";
BlynkTimer timer;
//void setup()
//{
//Serial.begin(9600);
//pinMode (12, OUTPUT);
//pinMode(33, INPUT);

//}

int WET= 15; // Wet Indicator at Digital PIN D0
int DRY= 2;  // Dry Indicator at Digital PIN D4

int sense_Pin= 33; // Soil Sensor input at Analog PIN A0
int value= 0;

void setup() {
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, MyLDR);
pinMode(WET, OUTPUT);
pinMode(DRY, OUTPUT);
delay(2000);
}

void MyLDR(){
Serial.print("MOISTURE LEVEL : ");
value= analogRead(sense_Pin);
value= value/10;
Serial.println(value);
if(value<300)
{
digitalWrite(WET, HIGH);
//Blynk.virtualWrite(V13, "need water");
Blynk.notify ("need water");
}
else
{
digitalWrite(DRY,HIGH);
//Blynk.virtualWrite(V13, "need food");
Blynk.notify ("need food");
}
// delay(1000);
// digitalWrite(WET,LOW);
//digitalWrite(DRY, LOW);
}

void loop()
{
Blynk.run();
timer.run();

}

# data[].attributes.body
mahmuda,nabila,syuhada
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
//#include <analogWrite.h>

char auth[] = "wOHgFzzbZYceLyEos4s5HMV08K7RJVp0";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "LetsWiFi";
char pass[] = "TryAgain";

int moisture = 5;
int rain =4;

BlynkTimer timer;
void setup()
{
Serial.begin(9600);// to view at serial monitor and establish connection
pinMode (12, OUTPUT);
pinMode(33, INPUT);
pinMode (5,INPUT);
pinMode (4,INPUT);

Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, MyLDR);
timer.setInterval(1000L, moisturesen);
timer.setInterval(1000L, raindrop);
}

void MyLDR(){

int LDRValue = analogRead(33);// read data from pin 333 and store in variable LDRValue
Serial.println(LDRValue);// show at serial monitor
if (LDRValue <=400 )
{
Blynk.virtualWrite(V10, "gelap ghupenya");     //Value Display  V0
digitalWrite(12,HIGH);
}
else
{
Blynk.virtualWrite(V10, "silau weh");
digitalWrite (12,LOW);
}
}
BLYNK_WRITE(V11)
{
int pinValue = param.asInt();
if (pinValue == 1) {
digitalWrite(12 , HIGH );
}else {
digitalWrite(12, LOW );
}
}

void moisturesen (){
int moistureVal = analogRead(5);
//Serial.print ("rain value");
Serial.println(moistureVal);
if (moistureVal <=5){
Blynk.virtualWrite(V12,"TAK PERLU SIRAM");
}
else {
Blynk.virtualWrite(V12,"tolong siram saya");  }
}

void raindrop (){
int rainVal = analogRead(7);
// Serial.print ("rain value");
Serial.println(rainVal);

if (rainVal <=6){
Blynk.virtualWrite(V5,"hujan da turun");
}
else {
Blynk.virtualWrite(V5,"sinaran mentari menyinari");
}
}

void loop()
{
Blynk.run();
timer.run();

}

# data[].attributes.body
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
//#include <analogWrite.h>

char auth[] = "6QS40Xa";
char ssid[] = "";
char pass[] = "";
BlynkTimer timer;
//void setup()
//{
//Serial.begin(9600);
//pinMode (12, OUTPUT);
//pinMode(33, INPUT);

//}

int led1= 15; // Wet Indicator at Digital PIN D0

int sense_Pin= 33; // Soil Sensor input at Analog PIN A0
int value= 0;

void setup() {
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);

timer.setInterval(1000L,waterlev);
pinMode(led1, OUTPUT);
delay(2000);
}

void waterlev(){

value= analogRead(sense_Pin);
value= value/10;
Serial.println(value);
if(value<300)
{
digitalWrite(led1, HIGH);
Blynk.virtualWrite(V16, value);
}
else
{
digitalWrite(led1,LOW);
Blynk.virtualWrite(V16, value);
}
delay(1000);
digitalWrite(led1,LOW);
}

void loop()
{
Blynk.run();
timer.run();

}

# data[].attributes.body
Syukur alhamdulillah menjadi 😋👍

# data[].attributes.body
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
//#include <analogWrite.h>

char auth[] = "auth";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "internet";
char pass[] = "password";

BlynkTimer timer;
void setup()
{
Serial.begin(9600);// to view at serial monitor and establish connection
pinMode (12, OUTPUT);
pinMode(33, INPUT);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, MyLDR);
}

void MyLDR(){

int LDRValue = analogRead(33);// read data from pin 333 and store in variable LDRValue
Serial.println(LDRValue);// show at serial monitor
if (LDRValue <=400 )
{
Blynk.virtualWrite(V10, "its dark");     //Value Display  V0
}
else
{
Blynk.virtualWrite(V10, "its bright");
}
}
BLYNK_WRITE(V11)
{
int pinValue = param.asInt();
if (pinValue == 1) {
digitalWrite(12 , HIGH );
}else {
digitalWrite(12, LOW );
}
}

void loop()
{
Blynk.run();
timer.run();

}

# data[].attributes.body
Group Aiman Fawzan  berjayoo akhirnya😭

# data[].attributes.body
Group syuhada n mahmuda donee

# data[].attributes.body
Lepasni nk bukak lampu dkt bilik pakai phone je...

# data[].attributes.body
akhirnyaaaa

# data[].attributes.body
Ini merupakan vlog daripada kami. Enjoy guyssss.

# data[].attributes.body
#nabilahsyuhadamahmuda

# data[].attributes.body
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16chars and 2line display
int sensorPin = A0;
int sensorValue ;
//int limit = 300;
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.setCursor(0,0);
lcd.print("Soil Humidity");
pinMode (13, OUTPUT);//UTNUK BUZZER DAN LED
pinMode (sensorPin, INPUT);//INI UNTUK SOIL SENSOR BACA DATA
Serial.begin(9600);
}
void loop()
{
int sensorValue = analogRead(sensorPin); // read data from soil sensor
Serial.println (sensorValue)//display sensor value in serial monitor
if (sensorValue < 300)
{
digitalWrite (13, HIGH);
lcd.setCursor(0,0); lcd.print("Soil Humidity");
lcd.setCursor(0,1);
lcd.print(sensorValue);
lcd.print("%");
delay(75); lcd.print(""); delay(1);
}
else{
digitalWrite (13, LOW);
lcd.setCursor(0,0); lcd.print("Soil Humidity");
lcd.setCursor(0,1);
lcd.print(sensorValue);
lcd.print("%");
delay(75); lcd.print(""); delay(1);
}
delay(1000);
}

# data[].attributes.body
#define BLYNK_PRINT Serial

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
// esp32 take data from blynk cloud
BLYNK_WRITE(V0) // blynk apps send data to virtual pin 1
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
Serial.println (pinValue);
if (pinValue == 1){
digitalWrite (4, HIGH);}
else {
digitalWrite (4,LOW);
}
// process received value
}

void setup()
{
// Debug console
pinMode (4, OUTPUT);
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}

void loop()
{
Blynk.run();
}

# data[].attributes.body
#nabilahcuTe

# data[].attributes.body
When (temp>31 degree celcius)
Buzzer ON!!

# data[].attributes.body
#include <DHT.h>;

//Constants
#define DHTPIN 7     // what pin we're connected to
#define DHTTYPE DHT22   // DHT 22  (AM2302)
DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino

//Variables
int chk;
float hum;  //Stores humidity value
float temp; //Stores temperature value

void setup()
{
Serial.begin(9600);
dht.begin();
pinMode (13, OUTPUT);//led and buzzer connection
}

void loop()
{
delay(2000);
//Read data and store it to variables hum and temp
hum = dht.readHumidity();
temp = dht.readTemperature();
if (temp > 31)
{
digitalWrite(13, HIGH); // LED high
}

else{

digitalWrite(13, LOW); // LED low
}
//Print temp and humidity values to serial monitor
Serial.print("Humidity: ");
Serial.print(hum);
Serial.print(" %, Temp: ");
Serial.print(temp);
Serial.println(" Celsius");
delay(2000); //Delay 2 sec.
}

# data[].attributes.headline
NABILAH SYUHADA MAHMUDA SELAMAT HARI RAYA SEMUA 🛵💨

# data[].attributes.subject
NABILAH SYUHADA MAHMUDA SELAMAT HARI RAYA SEMUA 🛵💨

# data[].attributes.body
LDR sensor run smoothly. Recommended to Watch in speed 2x 🎶

# data[].attributes.body
void setup()
{
pinMode (9,OUTPUT);
pinMode (8, OUTPUT);
pinMode (A0, INPUT);
Serial.begin(9600);
}

void loop(){

int value= analogRead(A0);
Serial.println(value);// untuk view pada serial monitor
if(value<10)
{
digitalWrite(8, HIGH);
digitalWrite(9,LOW);
}
else
{
digitalWrite(8,LOW);
digitalWrite(9,HIGH);

}

}

# data[].attributes.body
Bila terang lampu kuning akan menyala, bila gelap lampu hijau akan menyala

# data[].attributes.body
int ldrvalue;
void setup() {
Serial.begin(9600);
pinMode(13,OUTPUT);
pinMode(12,OUTPUT);
pinMode(11,OUTPUT);
}

void loop() {
ldrvalue=analogRead(A0);//Reads the Value of LDR(light).

if(ldrvalue<200)
{
digitalWrite(13,LOW);//Makes the LED glow in Dark.
digitalWrite(12,HIGH);//Makes the LED glow in Dark.
digitalWrite(11,LOW);//Makes the LED glow in Dark.
}
else{

digitalWrite(13,HIGH);//Turns the LED OFF in Light.
digitalWrite(12,LOW);//Turns the LED OFF in Light.
digitalWrite(11,HIGH);//Turns the LED OFF in Light.
}
Serial.println("LDR value is :");//Prints the value of LDR to Serial Monitor.
Serial.println(ldrvalue);
delay (1000);
}

# data[].attributes.body
int ledPin = 13;
int PIRPin = 2;
int PIRState = 0;

void setup()
{
pinMode(ledPin, OUTPUT);
pinMode(PIRPin, INPUT);
Serial.begin(9600);
}

void loop()
{
PIRState = digitalRead(PIRPin);
if (PIRState == HIGH)
{
digitalWrite(ledPin, HIGH);
Serial.println("motion detected");
}
else
{
digitalWrite(ledPin, LOW);
}
}

# data[].attributes.body
Kami menzahirkan rasa senang hati atas kejayaan ini.

# data[].attributes.body
int ledPin = 13;                // LED
int pirPin = 2;                 // PIR Out pin
int pirStat = 0;                   // PIR status
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(pirPin, INPUT);
Serial.begin(9600);
}
void loop(){
pirStat = digitalRead(pirPin);
if (pirStat == HIGH) {            // if motion detected
digitalWrite(ledPin, HIGH);  // turn LED ON
Serial.println("motion detected");
}
else {
digitalWrite(ledPin, LOW); // turn LED OFF if we have no motion
}
}

# data[].attributes.body
int pushButton = 2;
int LED1 = 12;

// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
// make the pushbutton's pin an input:
pinMode(pushButton, INPUT);
pinMode (LED1,OUTPUT);

}

// the loop routine runs over and over again forever:
void loop() {
// read the input pin:
int buttonState = digitalRead(pushButton);
// print out the state of the button:
Serial.println(buttonState);
if ( buttonState == HIGH)
{
digitalWrite (LED1, HIGH);
delay(1000);
}
else
{
digitalWrite (LED1, LOW);
delay(1000);
}

}

# data[].attributes.body
Okay dah detektif alhamdulillah

# data[].attributes.body
Ada masalah di sini

# data[].attributes.body
Akan tetapi buzzer bunyi seperti kentut

# data[].attributes.body
Bila belajar time puasa ni, pgg sensor mcm cicah biskot dlm air kopi

# data[].attributes.body
Analog input sensor value decrease when drop water on the sensor

# data[].attributes.body
void setup()
{
pinMode (12, OUTPUT);
pinMode (A0, INPUT);
}

void loop(){

value= analogRead(A0);
Serial.println(value);// untuk view pada serial monitor
if(value<300)
{
digitalWrite(12, HIGH);
}
else
{
digitalWrite(12,LOW);

}
}

# data[].attributes.body
module 1 rain detector

# data[].attributes.body
Water Sensor