Complete guide to configuring the IoT-enabled smart farming system
Master IoT connectivity, cloud services, and remote monitoring
Minimal IoT setup with WiFi and basic web interface
Standard setup with DHT22, LCD, and ThingSpeak logging
Complete IoT setup with dual cloud services
IoT setup with potentiometer control and monitoring
Complete professional setup with all IoT features
Full manual configuration for advanced IoT users
WIFI_SSID "YOUR_WIFI_SSID"
Your WiFi network SSID (name)
WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
Your WiFi network password
WIFI_TIMEOUT 10000ms
Maximum time to wait for WiFi connection
AP_MODE_ENABLED true
Creates local WiFi when internet fails
AP_SSID "SmartFarming-ESP32"
Local access point network name
AP_PASSWORD "smartfarm123"
Access point password (min 8 chars)
IOT_SERVICES_ENABLED true
Master switch for all cloud services
WEB_UI_ONLY_MODE false
Use only built-in web interface, no cloud
THINGSPEAK_ENABLED true
Enable ThingSpeak cloud data logging
ADAFRUIT_IO_ENABLED false
Enable Adafruit IO dashboards
THINGSPEAK_API_KEY "YOUR_API_KEY"
THINGSPEAK_CHANNEL_ID "YOUR_CHANNEL_ID"
ADAFRUIT_IO_USERNAME "YOUR_USERNAME"
ADAFRUIT_IO_KEY "YOUR_API_KEY"
WEB_SERVER_PORT 80
ENABLE_WEB_AUTH true
WEB_USERNAME "admin"
WEB_PASSWORD "smartfarm123"
OTA_HOSTNAME "smart-farming-esp32"
OTA_PASSWORD "your_ota_password"
SOIL_MOISTURE_DRY_VALUE
SOIL_MOISTURE_WET_VALUE
LDR_DARK_VALUE
LDR_BRIGHT_VALUE
MIN_TEMPERATURE
MAX_TEMPERATURE
MIN_HUMIDITY
MAX_HUMIDITY
DATA_TRANSMISSION_INTERVAL 300000ms
5 minutes between cloud updates
MAX_TRANSMISSION_RETRIES 3
Retry failed transmissions
LOG_BUFFER_SIZE 50
Readings stored in memory
MEMORY_CHECK_INTERVAL 300000ms
Monitor available memory
HTTP_TIMEOUT 10000ms
Cloud service request timeout
DNS_TIMEOUT 5000ms
DNS resolution timeout
// Local operation with web interface
#define IOT_SERVICES_ENABLED false
#define WEB_UI_ONLY_MODE true
#define THINGSPEAK_ENABLED false
#define ADAFRUIT_IO_ENABLED false
// Complete IoT with dual cloud services
#define IOT_SERVICES_ENABLED true
#define WEB_UI_ONLY_MODE false
#define THINGSPEAK_ENABLED true
#define ADAFRUIT_IO_ENABLED true