Adding device and sensor retrieval script