Function createSensorsData added in Factory.java.Its test works correctly