using the ids of the sensors