EasyManua.ls Logo

Eckstein komponente KS0530 - Page 157

Default Icon
160 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
157
lcd.print(" ");
lcd.setCursor(6, 0);
lcd.print(light);
}*/
}
void read_light(){
light = lightMeter.readLightLevel(); //read the light intensity
detected by BH1750
}
void read_dht11(){
int chk;
chk = DHT.read(DHT11_PIN); // read data
switch (chk) {
case DHTLIB_OK:
break;
case DHTLIB_ERROR_CHECKSUM: //check and return error
break;
case DHTLIB_ERROR_TIMEOUT: //Timeout and return error
break;
default: