SunFounder 3in1 Kit
(continued from previous page)
humidity = dht.readHumidity();
// Read temperature as Celsius (the default)
temperature = dht.readTemperature();
// Check if any reads failed and exit early (to try again).
if (isnan(humidity) || isnan(temperature)) {
Serial.println("Failed to read from DHT sensor!");
return false;
}
return true;
}
With the Blynk Timer, the ambient temperature, humidity, and light intensity are obtained every second and sent to
the data stream on the Blynk Cloud, from which the widgets display the data.
void myTimerEvent()
{
bool chk = readDHT();
int light = readLight();
if(chk){
Blynk.virtualWrite(V4,humidity);
Blynk.virtualWrite(V5,temperature);
}
Blynk.virtualWrite(V6,light);
}
6.6 6. Plant Monitor
The purpose of this project is to create a smart watering system that detects the current temperature, humidity, intensity
of light, and soil moisture and displays them on Blynk.
As soon as you turn on the Switch toggle in Blynk Cloud, the pump will start working and the plants will be hydrated.
Required Components
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
Name ITEMS IN THIS KIT LINK
3 in 1 Starter Kit 380+
You can also buy them separately from the links below.
6.6. 6. Plant Monitor 309