Implemented communication between sensor and service.