Setup distance sensor and serial communication