added code for IR sensor and servo