mirror of
https://github.com/rodneyosodo/smart-farm-africastalking-hackathon.git
synced 2026-06-23 04:10:17 +00:00
✏️ Commenting code - light intensity
This commit is contained in:
@@ -228,7 +228,7 @@ float readSoilMoisture(void)
|
||||
|
||||
float readLightIntensity(void)
|
||||
{
|
||||
// Read light intensity
|
||||
// This functions reads the light intensity as returns the value as float
|
||||
ldrValue = analogRead(ldrPin);
|
||||
ldrValue = map(ldrValue, 0, 4095, 100, 0);
|
||||
// Map value : 0 will be 100 and 4095 will be 0
|
||||
|
||||
Reference in New Issue
Block a user