Refactored parsing data from sensors