Get values from sensor and put them into a xml file