Added function for recieving sensor values