mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 22:56:11 +00:00
.
This commit is contained in:
@@ -29,4 +29,5 @@ const char* WIFI_PASSWORD = "208208208";
|
||||
#define ADC1 (1)
|
||||
|
||||
int light_sensor_reading = 0;
|
||||
float lighting_percentage = 0.00;
|
||||
|
||||
|
@@ -34,6 +34,7 @@ void TaskStatusLEDCode (void* parameters) {
|
||||
void TaskSensorValuesCode (void* parameters) {
|
||||
|
||||
for (;;) {
|
||||
lighting_percentage = map(analogRead(ADC1), 0.0f, 4095.0f, 0, 100);
|
||||
Serial.println("BME-280 Sensors Readings ...");
|
||||
Serial.print("Temperature:\t\t");
|
||||
Serial.print(bme.readTemperature());
|
||||
|
Reference in New Issue
Block a user