This project based on smart greenhouse (https://www.hackster.io/drpanosv/smart-greenhouse-fbc739) made for motitoring internal - external home enviromental conditions, motion, fire detection and controling 4 appliences with Blynk android app.
Features:
i. Monitoring internal (temperature, humidity, air quality) and external home environmental conditions (temperature, humidity) in real time and on graph for a period of time.
ii. Control 4 appliences.
iii. Monitoring and controlling in real time, at any location, using a mobile phone or computer application (android emulator).
iv. Fire detection.
v. Motion detection in space.
#include <SPI.h> #include <Ethernet.h> #include <BlynkSimpleEthernet.h> #include <DHT.h> // You should get Auth Token in the Blynk App. char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; #define W5100_CS 10 #define SDCARD_CS 4 #define DHTaPIN 9 #define DHTbPIN 3 #define DHTaTYPE DHT11 // DHT 11) #define DHTbTYPE DHT22 // DHT 22 (AM2302), AM2321
See full code here