cleand dependencies and added test methods for humitdy&temp sensor
This commit is contained in:
parent
6b56b3f9b6
commit
f9cad2f8f4
@ -14,7 +14,6 @@ board = az-delivery-devkit-v4
|
|||||||
framework = arduino
|
framework = arduino
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
# ID of Lightsensor library BH1750
|
439 #ID of Lightsensor library BH1750
|
||||||
439
|
19 #DHT sensor library
|
||||||
DHT sensor library
|
31 #Adafruit Unified Sensor
|
||||||
Adafruit Unified Sensor
|
|
||||||
@ -21,5 +21,13 @@ void loop() {
|
|||||||
Serial.print("Soil moisture: ");
|
Serial.print("Soil moisture: ");
|
||||||
Serial.println(mstValue);
|
Serial.println(mstValue);
|
||||||
|
|
||||||
|
uint16_t humidityValue = readHumidity();
|
||||||
|
Serial.print("Humidity: ");
|
||||||
|
Serial.println(humidityValue);
|
||||||
|
|
||||||
|
uint16_t temperatureValue = readTemperature();
|
||||||
|
Serial.print("Temperature: ");
|
||||||
|
Serial.println(temperatureValue);
|
||||||
|
|
||||||
delay(200); // delay in between reads for stability
|
delay(200); // delay in between reads for stability
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user