Added read function to spark Device