getting all values of sensor and not attempting nonexistant values