Improved resilience to sensor errors.
Added configuration by properties file.