add callbacks to sensor and send method to motor