Added support for sensor retries when a value reading fails. Max retries is configurable.