parse data from sensor