Reads the distance sensor and refreshes the cache. Call this once per loop, before reading any properties.