Changed sensor variables to get info from class