added saveSettingsInEEPROM, added constant maxMoisture