Get values from sensor to xml file