SunFounder 3in1 Kit
6. If you want to use Blynk on mobile devices, please refer to How to use Blynk on mobile device?.
How it works?
These two functions are used to get the temperature, humidity and light intensity of the room.
int readLight(){
return analogRead(lightPin);
}
bool readDHT() {
// Reading temperature or humidity takes about 250 milliseconds!
// Sensor readings may also be up to 2 seconds 'old' (it's a very slow sensor)
(continues on next page)
308 Chapter 6. IoT Projects