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